X-Git-Url: http://juplo.de/gitweb/?p=hibernate4-maven-plugin;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fplugins%2Fhibernate4%2FHbm2DdlMojo.java;h=e67a0787aa2de416009d25a97ac0480b65748c94;hp=044e3307ec7aa47f2d203426fb7400751fb57777;hb=1ba817af3ae5ab23232fca001061f8050cecd6a7;hpb=02312592d27d628cc7e0d8e28cc40bf74a80de21
diff --git a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java
index 044e3307..e67a0787 100644
--- a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java
+++ b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java
@@ -226,12 +226,15 @@ public class Hbm2DdlMojo extends AbstractMojo
/**
* Target of execution:
*
- * - NONE do nothing - just validate the configuration (forces excecution, signals skip)
- * - EXPORT create database (DEFAULT!. forces excecution, signals skip)
- * - SCRIPT export schema to SQL-script
+ * - NONE only export schema to SQL-script (forces excecution, signals skip)
+ * - EXPORT create database (DEFAULT!). forces excecution, signals skip)
+ * - SCRIPT export schema to SQL-script and print it to STDOUT
* - BOTH
*
*
+ * A databaseconnection is only needed for EXPORT and BOTH, but a
+ * Hibernate-Dialect must always be choosen.
+ *
* @parameter property="hibernate.export.target" default-value="EXPORT"
*/
private String target;
@@ -245,6 +248,8 @@ public class Hbm2DdlMojo extends AbstractMojo
* BOTH (DEFAULT!)
*
*
+ * If NONE is choosen, no databaseconnection is needed.
+ *
* @parameter property="hibernate.export.type" default-value="BOTH"
*/
private String type;
@@ -684,6 +689,7 @@ public class Hbm2DdlMojo extends AbstractMojo
* hibernate does not use the context-classloader of the current
* thread and, hence, would not be able to resolve the driver-class!
*/
+ getLog().debug("Target: " + target + ", Type: " + type);
switch (target)
{
case EXPORT: