X-Git-Url: http://juplo.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fplugins%2Fhibernate%2FCreateMojo.java;h=a89d58d2d331e3383bb7878b0f102a8c8193dd2d;hb=6dff3bfb0f9ea7a1d0cc56398aaad29e31a17b91;hp=19078ea89efc313a89269200066bcc3c8272b41c;hpb=4940080670944a15916c68fb294e18a6bfef12d5;p=hibernate4-maven-plugin
diff --git a/src/main/java/de/juplo/plugins/hibernate/CreateMojo.java b/src/main/java/de/juplo/plugins/hibernate/CreateMojo.java
index 19078ea8..a89d58d2 100644
--- a/src/main/java/de/juplo/plugins/hibernate/CreateMojo.java
+++ b/src/main/java/de/juplo/plugins/hibernate/CreateMojo.java
@@ -34,49 +34,27 @@ import org.hibernate.tool.hbm2ddl.SchemaExport;
*/
public class CreateMojo extends AbstractSchemaMojo
{
- /**
- * Export the database-schma to the database.
- * If set to false
, only the SQL-script is created and the
- * database is not touched.
- *
- * @parameter property="hibernate.export.export" default-value="true"
- * @since 2.0
- */
- private boolean export;
-
- /**
- * Create the catalog
- * If set to false
, only the SQL-script is created and the
- * database is not touched.
- *
- * @parameter property=org.hibernate.cfg.AvailableSettings.HBM2DDL_IMPORT_FILES_SQL_EXTRACTOR default-value="false"
- * @since 2.0
- */
- private boolean createNamespaces; // TODO handle in configure-Method
-
/**
* Output file.
+ *
+ * If the specified filename is not absolut, the file will be created
+ * relative to the project build directory
+ * (project.build.directory
).
*
- * @parameter property="hibernate.export.schema.filename" default-value="${project.build.directory}/schema.sql"
+ * @parameter property="hibernate.schema.export.create" default-value="schema.sql"
* @since 1.0
*/
private String outputFile;
- /**
- * Delimiter in output-file.
- *
- * @parameter property="hibernate.export.schema.delimiter" default-value=";"
- * @since 1.0
- */
- private String delimiter;
- /**
- * Format output-file.
- *
- * @parameter property="hibernate.export.schema.format" default-value="true"
- * @since 1.0
- */
- private boolean format;
+ @Override
+ public final void execute()
+ throws
+ MojoFailureException,
+ MojoExecutionException
+ {
+ super.execute(outputFile);
+ }
@Override