X-Git-Url: https://juplo.de/gitweb/?p=website;a=blobdiff_plain;f=dist%2Fhibernate4-maven-plugin-1.0.5%2Fexport-mojo.html;fp=dist%2Fhibernate4-maven-plugin-1.0.5%2Fexport-mojo.html;h=0000000000000000000000000000000000000000;hp=f966c3048519b72e16f1b7147ec894228b0f4447;hb=b293b312d6f0dd8b2dc716375fd442dd295a9942;hpb=9179a67d9952d3b63e95686dbd6cacd3c9e13cb2 diff --git a/dist/hibernate4-maven-plugin-1.0.5/export-mojo.html b/dist/hibernate4-maven-plugin-1.0.5/export-mojo.html deleted file mode 100644 index f966c304..00000000 --- a/dist/hibernate4-maven-plugin-1.0.5/export-mojo.html +++ /dev/null @@ -1,841 +0,0 @@ - - - - - - - - - juplo - Hibernate 4 Maven Plugin - Parameter Documentation - - - - - - - - - - - - -
- - -
-
-

Parameter Documentation

- - -
-

hibernate4:export

- -

Full name:

- -

de.juplo:hibernate4-maven-plugin:1.0.5: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
delimiterString1.0Delimiter in output-file.
Default value is: ;.
User property is: hibernate.export.schema.delimiter.
driverClassNameString1.0SQL-Driver name.
User property is: hibernate.connection.driver_class.
enversboolean1.0.3Generate envers schema for auditing tables.
Default value is: false.
User property is: hibernate.export.envers.
forceboolean1.0Force 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.
formatboolean1.0Format output-file.
Default value is: true.
User property is: hibernate.export.schema.format.
hibernateDialectString1.0Hibernate dialect.
User property is: hibernate.dialect.
hibernateMappingString1.0.2List of Hibernate-Mapping-Files (XML). Multiple files can be -separated with white-spaces and/or commas.
User property is: hibernate.mapping.
hibernateNamingStrategyString1.0.2Hibernate Naming Strategy
User property is: hibernate.ejb.naming_strategy.
hibernatePropertiesString1.0Path to Hibernate configuration file.
Default value is: ${project.build.outputDirectory}/hibernate.properties.
outputDirectoryString1.0Classes-Directory to scan. - -

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


User property is: project.build.outputDirectory.
outputFileString1.0Output file.
Default value is: ${project.build.directory}/schema.sql.
User property is: hibernate.export.schema.filename.
passwordString1.0Database password
User property is: hibernate.connection.password.
scanDependenciesString1.0.3Dependency-Scopes, that should be scanned for annotated classes. - -

By default, only dependencies in the scope compile -are scanned for annotated classes. Multiple scopes can be seperated -by white space or commas.

- -

If you do not want any dependencies to be scanned for annotated -classes, set this parameter to none.

- -

The plugin does not scan for annotated classes in transitive -dependencies. If some of your annotated classes are hidden in a -transitive dependency, you can simply add that dependency -explicitly.


Default value is: compile.
User property is: hibernate.export.scan_dependencies.
scanTestClassesboolean1.0.1Whether 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.scan_testclasses.
skipboolean1.0Skip execution - -

If set to true, the execution is skipped.

- -

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

- -

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


Default value is: ${maven.test.skip}.
User property is: hibernate.skip.
targetString1.0Target of execution: - -
    - -
  • NONE only export schema to SQL-script (forces -execution, signals skip)
  • - -
  • EXPORT create database -(DEFAULT!). forces execution, signals skip)
  • - -
  • SCRIPT export schema to SQL-script and print -it to STDOUT
  • - -
  • BOTH
  • -
-A database connection is only needed for EXPORT and BOTH, but a -Hibernate-Dialect must always be chosen.
Default value is: EXPORT.
User property is: hibernate.export.target.
testOutputDirectoryString1.0.2Test-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.
typeString1.0Type of execution. - -
    - -
  • NONE do nothing - just validate the -configuration
  • - -
  • CREATE create database-schema
  • - -
  • DROP drop database-schema
  • - -
  • BOTH (DEFAULT!)
  • -
-If NONE is choosen, no databaseconnection is needed.
Default value is: BOTH.
User property is: hibernate.export.type.
urlString1.0Database URL.
User property is: hibernate.connection.url.
usernameString1.0Database username
User property is: hibernate.connection.username.
-
- -
-

Parameter Details

- -

delimiter:

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

-

driverClassName:

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

-

envers:

- -
Generate envers schema for auditing tables.
- -
    - -
  • Type: boolean
  • - -
  • Since: 1.0.3
  • - -
  • Required: No
  • - -
  • User Property: hibernate.export.envers
  • - -
  • Default: false
  • -

-

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
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.export.force
  • - -
  • Default: false
  • -

-

format:

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

-

hibernateDialect:

- -
Hibernate dialect.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.dialect
  • -

-

hibernateMapping:

- -
List of Hibernate-Mapping-Files (XML). Multiple files can be -separated with white-spaces and/or commas.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.2
  • - -
  • Required: No
  • - -
  • User Property: hibernate.mapping
  • -

-

hibernateNamingStrategy:

- -
Hibernate Naming Strategy
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.2
  • - -
  • Required: No
  • - -
  • User Property: hibernate.ejb.naming_strategy
  • -

-

hibernateProperties:

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

-

outputDirectory:

- -
Classes-Directory to scan. - -

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

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: project.build.outputDirectory
  • -

-

outputFile:

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

-

password:

- -
Database password
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.password
  • -

-

scanDependencies:

- -
Dependency-Scopes, that should be scanned for annotated classes. - -

By default, only dependencies in the scope compile -are scanned for annotated classes. Multiple scopes can be seperated -by white space or commas.

- -

If you do not want any dependencies to be scanned for annotated -classes, set this parameter to none.

- -

The plugin does not scan for annotated classes in transitive -dependencies. If some of your annotated classes are hidden in a -transitive dependency, you can simply add that dependency -explicitly.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.3
  • - -
  • Required: No
  • - -
  • User Property: hibernate.export.scan_dependencies
  • - -
  • Default: compile
  • -

-

scanTestClasses:

- -
Whether 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
  • - -
  • Since: 1.0.1
  • - -
  • Required: No
  • - -
  • User Property: hibernate.export.scan_testclasses
  • - -
  • Default: false
  • -

-

skip:

- -
Skip execution - -

If set to true, the execution is skipped.

- -

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

- -

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

- -
    - -
  • Type: boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.skip
  • - -
  • Default: ${maven.test.skip}
  • -

-

target:

- -
Target of execution: - -
    - -
  • NONE only export schema to SQL-script (forces -execution, signals skip)
  • - -
  • EXPORT create database -(DEFAULT!). forces execution, signals skip)
  • - -
  • SCRIPT export schema to SQL-script and print -it to STDOUT
  • - -
  • BOTH
  • -
-A database connection is only needed for EXPORT and BOTH, but a -Hibernate-Dialect must always be chosen.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • 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
  • - -
  • Since: 1.0.2
  • - -
  • 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!)
  • -
-If NONE is choosen, no databaseconnection is needed.
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.export.type
  • - -
  • Default: BOTH
  • -

-

url:

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

-

username:

- -
Database username
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.connection.username
  • -
-
-
- - -
-
- - -
-
- -
- - -