X-Git-Url: https://juplo.de/gitweb/?p=hibernate4-maven-plugin;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fplugins%2Fhibernate%2FCreateMojo.java;h=5bafe14ddec7c7830aea5fd7f0a04acca2d3ba45;hp=19078ea89efc313a89269200066bcc3c8272b41c;hb=8e5921c9e76b4540f1d4b75e05e338001145ff6d;hpb=4940080670944a15916c68fb294e18a6bfef12d5 diff --git a/src/main/java/de/juplo/plugins/hibernate/CreateMojo.java b/src/main/java/de/juplo/plugins/hibernate/CreateMojo.java index 19078ea8..5bafe14d 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="create.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