X-Git-Url: https://juplo.de/gitweb/?p=website;a=blobdiff_plain;f=dist%2Fhibernate4-maven-plugin-1.0.1%2Fexport-mojo.html;fp=dist%2Fhibernate4-maven-plugin-1.0.1%2Fexport-mojo.html;h=f6918f830103723111f3e6a01a62faeb875d248a;hp=0000000000000000000000000000000000000000;hb=a53595184bd6e57bdc45292cc92c393c4e2dfe6e;hpb=c48c9ee0e9faa89a4c0a5323b367b9f5a6abe602 diff --git a/dist/hibernate4-maven-plugin-1.0.1/export-mojo.html b/dist/hibernate4-maven-plugin-1.0.1/export-mojo.html new file mode 100644 index 00000000..f6918f83 --- /dev/null +++ b/dist/hibernate4-maven-plugin-1.0.1/export-mojo.html @@ -0,0 +1,413 @@ + + + + + + Hibernate 4 Maven Plugin - + hibernate4:export + + + + + + + + + + + +
+ +
+
+
+ + +

hibernate4:export

+

Full name:

+

de.juplo:hibernate4-maven-plugin:1.0.1:export

+

Description:

+
Goal which extracts the hibernate-mapping-configuration and exports +an according SQL-database-schema.
+

Attributes:

+
    +
  • Requires a Maven project to be executed.
  • +
  • Requires dependency resolution of artifacts in scope: runtime.
  • +
  • The goal is thread-safe and supports parallel builds.
  • +
  • Binds by default to the lifecycle phase: process-classes.
  • +
+

Optional Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeSinceDescription
delimiterString-Delimiter in output-file.
Default value is: ;.
User property is: hibernate.export.schema.delimiter.
driverClassNameString-SQL-Driver name.
User property is: hibernate.connection.driver_class.
forceboolean-Force execution +

Force execution, even if no modified or newly added annotated +classes where found and the dialect was not changed.

+

skip takes precedence over force.


Default value is: false.
User property is: hibernate.export.force.
formatboolean-Format output-file.
Default value is: true.
User property is: hibernate.export.schema.format.
hibernateDialectString-Hibernate dialect.
User property is: hibernate.dialect.
hibernatePropertiesString-Path to Hibernate configuration file.
Default value is: ${project.build.outputDirectory}/hibernate.properties.
outputDirectoryString-Classes-Directory to scan. +

This parameter defaults to the maven build-output-directory for +classes. Additonally, all dependencies are scanned for annotated +classes.


User property is: project.build.outputDirectory.
outputFileString-Output file.
Default value is: ${project.build.directory}/schema.sql.
User property is: hibernate.export.schema.filename.
passwordString-Database password
User property is: hibernate.connection.password.
scanTestClassesboolean-Wether to scan test-classes too, or not. +

If this parameter is set to true the test-classes +of the artifact will be scanned for hibernate-annotated classes +additionally.


Default value is: false.
User property is: hibernate.export.scann_testclasses.
skipboolean-Skip execution +

If set to true, the execution is skipped.

+

A skipped excecution is signaled via the maven-property +${hibernate.export.skipped}.

+

The excecution is skipped automatically, if no modified or newly +added annotated classes are found and the dialect was not +changed.


Default value is: false.
User property is: maven.test.skip.
targetString-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
  • +
  • BOTH
  • +

Default value is: EXPORT.
User property is: hibernate.export.target.
testOutputDirectoryString-Test-Classes-Directory to scan. +

This parameter defaults to the maven build-output-directory for +test-classes.

+

This parameter is only used, when scanTestClasses +is set to true!


User property is: project.build.testOutputDirectory.
typeString-Type of execution. +
    +
  • NONE do nothing - just validate the +configuration
  • +
  • CREATE create database-schema
  • +
  • DROP drop database-schema
  • +
  • BOTH (DEFAULT!)
  • +

Default value is: BOTH.
User property is: hibernate.export.type.
urlString-Database URL.
User property is: hibernate.connection.url.
usernameString-Database username
User property is: hibernate.connection.username.
+
+

Parameter Details

+

delimiter:

+
Delimiter in output-file.
+
    +
  • Type: java.lang.String
  • +
  • Required: No
  • +
  • User Property: hibernate.export.schema.delimiter
  • +
  • Default: ;
  • +

driverClassName:

+
SQL-Driver name.
+
    +
  • Type: java.lang.String
  • +
  • Required: No
  • +
  • User Property: hibernate.connection.driver_class
  • +

force:

+
Force execution +

Force execution, even if no modified or newly added annotated +classes where found and the dialect was not changed.

+

skip takes precedence over force.

+
    +
  • Type: boolean
  • +
  • Required: No
  • +
  • User Property: hibernate.export.force
  • +
  • Default: false
  • +

format:

+
Format output-file.
+
    +
  • Type: boolean
  • +
  • Required: No
  • +
  • User Property: hibernate.export.schema.format
  • +
  • Default: true
  • +

hibernateDialect:

+
Hibernate dialect.
+
    +
  • Type: java.lang.String
  • +
  • Required: No
  • +
  • User Property: hibernate.dialect
  • +

hibernateProperties:

+
Path to Hibernate configuration file.
+
    +
  • Type: java.lang.String
  • +
  • Required: No
  • +
  • Default: ${project.build.outputDirectory}/hibernate.properties
  • +

outputDirectory:

+
Classes-Directory to scan. +

This parameter defaults to the maven build-output-directory for +classes. Additonally, all dependencies are scanned for annotated +classes.

+
    +
  • Type: java.lang.String
  • +
  • Required: No
  • +
  • User Property: project.build.outputDirectory
  • +

outputFile:

+
Output file.
+
    +
  • Type: java.lang.String
  • +
  • Required: No
  • +
  • User Property: hibernate.export.schema.filename
  • +
  • Default: ${project.build.directory}/schema.sql
  • +

password:

+
Database password
+
    +
  • Type: java.lang.String
  • +
  • Required: No
  • +
  • User Property: hibernate.connection.password
  • +

scanTestClasses:

+
Wether to scan test-classes too, or not. +

If this parameter is set to true the test-classes +of the artifact will be scanned for hibernate-annotated classes +additionally.

+
    +
  • Type: boolean
  • +
  • Required: No
  • +
  • User Property: hibernate.export.scann_testclasses
  • +
  • Default: false
  • +

skip:

+
Skip execution +

If set to true, the execution is skipped.

+

A skipped excecution is signaled via the maven-property +${hibernate.export.skipped}.

+

The excecution is skipped automatically, if no modified or newly +added annotated classes are found and the dialect was not +changed.

+
    +
  • Type: boolean
  • +
  • Required: No
  • +
  • User Property: maven.test.skip
  • +
  • Default: false
  • +

target:

+
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
  • +
  • BOTH
  • +
+
    +
  • Type: java.lang.String
  • +
  • Required: No
  • +
  • User Property: hibernate.export.target
  • +
  • Default: EXPORT
  • +

testOutputDirectory:

+
Test-Classes-Directory to scan. +

This parameter defaults to the maven build-output-directory for +test-classes.

+

This parameter is only used, when scanTestClasses +is set to true!

+
    +
  • Type: java.lang.String
  • +
  • Required: No
  • +
  • User Property: project.build.testOutputDirectory
  • +

type:

+
Type of execution. +
    +
  • NONE do nothing - just validate the +configuration
  • +
  • CREATE create database-schema
  • +
  • DROP drop database-schema
  • +
  • BOTH (DEFAULT!)
  • +
+
    +
  • Type: java.lang.String
  • +
  • Required: No
  • +
  • User Property: hibernate.export.type
  • +
  • Default: BOTH
  • +

url:

+
Database URL.
+
    +
  • Type: java.lang.String
  • +
  • Required: No
  • +
  • User Property: hibernate.connection.url
  • +

username:

+
Database username
+
    +
  • Type: java.lang.String
  • +
  • Required: No
  • +
  • User Property: hibernate.connection.username
  • +
+
+
+ + +
+
+
+
+
+ + +