Refined reimplementation of the plugin for Hibernate 5.x
[hibernate4-maven-plugin] / src / site / xhtml / configuration.xhtml
index bfaf6fe..e8c5afd 100644 (file)
@@ -19,7 +19,7 @@
   <pre class="prettyprint linenums lang-html">
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   <pre class="prettyprint linenums lang-html">
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
-  &lt;artifactId&gt;hibernate4-maven-plugin&lt;/artifactId&gt;
+  &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
   &lt;version&gt;${project.version}&lt;/version&gt;
   &lt;executions&gt;
     &lt;execution&gt;
   &lt;version&gt;${project.version}&lt;/version&gt;
   &lt;executions&gt;
     &lt;execution&gt;
   But be aware, that in this case the database-url, that is
   build in the application is the same that is used while testing, where
   the database is droped and recreated by the plugin.
   But be aware, that in this case the database-url, that is
   build in the application is the same that is used while testing, where
   the database is droped and recreated by the plugin.
+  Because of that,
   <strong>
   <strong>
-    So, you should never fire up this configuration on your production
+    you should never fire up this configuration on your production
     system, or your database might be erased!
   </strong>
   </p>
   <p>
     system, or your database might be erased!
   </strong>
   </p>
   <p>
-  Hence, you should specify a different url for testing like in the
+  A better approach is, to specify a different url for testing like in the
   following snippet:
   </p>
   <pre class="prettyprint linenums lang-html">
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   following snippet:
   </p>
   <pre class="prettyprint linenums lang-html">
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
-  &lt;artifactId&gt;hibernate4-maven-plugin&lt;/artifactId&gt;
+  &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
   &lt;version&gt;${project.version}&lt;/version&gt;
   &lt;executions&gt;
     &lt;execution&gt;
   &lt;version&gt;${project.version}&lt;/version&gt;
   &lt;executions&gt;
     &lt;execution&gt;
 
   &lt;plugin&gt;
     &lt;groupId&gt;de.juplo&lt;/groupId&gt;
 
   &lt;plugin&gt;
     &lt;groupId&gt;de.juplo&lt;/groupId&gt;
-    &lt;artifactId&gt;hibernate4-maven-plugin&lt;/artifactId&gt;
+    &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
     &lt;version&gt;${project.version}&lt;/version&gt;
     &lt;executions&gt;
       &lt;execution&gt;
     &lt;version&gt;${project.version}&lt;/version&gt;
     &lt;executions&gt;
       &lt;execution&gt;
   The relevant configuration-parameters are:
   </p>
   <ul>
   The relevant configuration-parameters are:
   </p>
   <ul>
-    <li><code>driverClassName</code></li>
-    <li><code>hibernateDialect</code></li>
+    <li><code>driver</code></li>
+    <li><code>dialect</code></li>
     <li><code>url</code></li>
     <li><code>username</code></li>
     <li><code>password</code></li>
     <li><code>url</code></li>
     <li><code>username</code></li>
     <li><code>password</code></li>
   <pre class="prettyprint linenums lang-html">
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   <pre class="prettyprint linenums lang-html">
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
-  &lt;artifactId&gt;hibernate4-maven-plugin&lt;/artifactId&gt;
+  &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
   &lt;version&gt;${project.version}&lt;/version&gt;
   &lt;executions&gt;
     &lt;execution&gt;
   &lt;version&gt;${project.version}&lt;/version&gt;
   &lt;executions&gt;
     &lt;execution&gt;
     &lt;/execution&gt;
   &lt;/executions&gt;
   &lt;configuration&gt;
     &lt;/execution&gt;
   &lt;/executions&gt;
   &lt;configuration&gt;
-    &lt;driverClassName&gt;org.hsqldb.jdbcDriver&lt;/driverClassName&gt;
-    &lt;hibernateDialect&gt;org.hibernate.dialect.HSQLDialect&lt;/hibernateDialect&gt;
+    &lt;driver&gt;org.hsqldb.jdbcDriver&lt;/driver&gt;
+    &lt;dialect&gt;org.hibernate.dialect.HSQLDialect&lt;/dialect&gt;
     &lt;url&gt;&lt;![CDATA[jdbc:hsqldb:target/db/fotos;shutdown=true]]&gt;&lt;/url&gt;
     &lt;username&gt;sa&lt;/username&gt;
     &lt;password&gt;&lt;/password&gt;
     &lt;url&gt;&lt;![CDATA[jdbc:hsqldb:target/db/fotos;shutdown=true]]&gt;&lt;/url&gt;
     &lt;username&gt;sa&lt;/username&gt;
     &lt;password&gt;&lt;/password&gt;
   </p>
   <ol>
     <li><code>hibernate.properties</code></li>
   </p>
   <ol>
     <li><code>hibernate.properties</code></li>
+    <li><code>hibernate.cfg.xml</code></li>
+    <li><code>persistence.xml</code></li>
     <li>maven-properties</li>
     <li>plugin-configuration</li>
   </ol>
   <p>
   If you are in doubt about where a configuration-value comes from, run
     <li>maven-properties</li>
     <li>plugin-configuration</li>
   </ol>
   <p>
   If you are in doubt about where a configuration-value comes from, run
-  maven with the <a href="./debugging.html">debug-output</a> enabled: <code>mvn -X hibernate4:export</code>
+  maven with the <a href="./debugging.html">debug-output</a> enabled: <code>mvn -X hibernate:export</code>
   and be aware, that maven-properties can be overwitten on the command-line,
   in your <code>~/.m2/settings.xml</code> and in a profile.
   </p>
   and be aware, that maven-properties can be overwitten on the command-line,
   in your <code>~/.m2/settings.xml</code> and in a profile.
   </p>
   other configuration-method.
   </p>
   <p>
   other configuration-method.
   </p>
   <p>
-  If you realy need to overwrite plugin-configuration-values with
+  If you need to overwrite plugin-configuration-values with
   maven-properties, you can use maven-properties in the plugin-configuration:
   </p>
   <pre class="prettyprint linenums lang-html">
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
   maven-properties, you can use maven-properties in the plugin-configuration:
   </p>
   <pre class="prettyprint linenums lang-html">
 &lt;plugin&gt;
   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
-  &lt;artifactId&gt;hibernate4-maven-plugin&lt;/artifactId&gt;
+  &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
   &lt;version&gt;${project.version}&lt;/version&gt;
   &lt;executions&gt;
     &lt;execution&gt;
   &lt;version&gt;${project.version}&lt;/version&gt;
   &lt;executions&gt;
     &lt;execution&gt;