X-Git-Url: https://juplo.de/gitweb/?p=website;a=blobdiff_plain;f=dist%2Fhibernate-maven-plugin-2.0.0%2Fcreate-mojo.html;fp=dist%2Fhibernate-maven-plugin-2.0.0%2Fcreate-mojo.html;h=0000000000000000000000000000000000000000;hp=d08749a2102558ff2618fb0b26980a017aad294c;hb=b293b312d6f0dd8b2dc716375fd442dd295a9942;hpb=9179a67d9952d3b63e95686dbd6cacd3c9e13cb2 diff --git a/dist/hibernate-maven-plugin-2.0.0/create-mojo.html b/dist/hibernate-maven-plugin-2.0.0/create-mojo.html deleted file mode 100644 index d08749a2..00000000 --- a/dist/hibernate-maven-plugin-2.0.0/create-mojo.html +++ /dev/null @@ -1,1044 +0,0 @@ - - - - - - - - - juplo - Hibernate Maven Plugin - Goal: CREATE - - - - - - - - - - - -
- - -
-
-

Goal: CREATE

- - -
-

hibernate:create

- -

Full name:

- -

de.juplo:hibernate-maven-plugin:2.0.0:create

- -

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
createNamespacesBoolean2.0Specifies whether to automatically create also the database -schema/catalog.
Default value is: false.
User property is: hibernate.hbm2dll.create_namespaces.
delimiterString1.0Delimiter in output-file. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: ;.
User property is: hibernate.schema.delimiter.
dialectString1.0Hibernate dialect.
User property is: hibernate.dialect.
driverString1.0SQL-Driver name.
User property is: hibernate.connection.driver_class.
exportBoolean2.0Export the database-schma to the database. If set to -false, only the SQL-script is created and the database -is not touched. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: true.
User property is: hibernate.schema.export.
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.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.force.
formatBoolean1.0Format output-file.
User property is: hibernate.format_sql.
hibernateConfigString1.1.0Path to Hibernate configuration file (.cfg.xml). If this parameter -is specified, the plugin will try to load configuration values from -a file with the given path or a ressource on the classpath with the -given name. If both fails, the execution of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.cfg.xml on the -classpath, if it is present, but will not fail if there is no such -ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.

- -

Settings in this file will overwrite settings in the properties -file.


hibernatePropertiesString1.0Path to a file or name of a ressource with hibernate properties. If -this parameter is specified, the plugin will try to load -configuration values from a file with the given path or a ressource -on the classpath with the given name. If both fails, the execution -of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.properties on -the classpath, if it is present, but will not fail if there is no -such ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.


implicitNamingStrategyString2.0Implicit naming strategy
User property is: hibernate.implicit_naming_strategy.
mappingsString1.0.2List of Hibernate-Mapping-Files (XML). Multiple files can be -separated with white-spaces and/or commas.
User property is: hibernate.mapping.
outputDirectoryString1.0Classes-Directory to scan. - -

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

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


User property is: project.build.outputDirectory.
outputFileString1.0Output file. - -

If the specified filename is not absolut, the file will be -created relative to the project build directory -(project.build.directory).


Default value is: create.sql.
User property is: hibernate.schema.export.create.
passwordString1.0Database password
User property is: hibernate.connection.password.
persistenceUnitString1.1.0Name of the persistence-unit. If this parameter is specified, the -plugin will try to load configuration values from a -persistence-unit with the specified name. If no such -persistence-unit can be found, the plugin will throw an exception. - -

If this parameter is not set and there is only one -persistence-unit available, that unit will be used automatically. -But if this parameter is not set and there are multiple -persistence-units available on, the class-path, the execution of -the plugin will fail.

- -

Settings in this file will overwrite settings in the properties -or the configuration file.


physicalNamingStrategyString2.0Physical naming strategy
User property is: hibernate.physical_naming_strategy.
scanClassesBoolean2.0Wether the project should be scanned for annotated-classes, or not - -

This parameter is intended to allow overwriting of the parameter -exclude-unlisted-classes of a -persistence-unit. If not specified, it defaults to -true


User property is: hibernate.schema.scan.classes.
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.schema.scan.dependencies.
scanTestClassesBoolean1.0.1Whether to scan the test-branch of the project for annotated -classes, or not. - -

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

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: false.
User property is: hibernate.schema.scan.test_classes.
showBoolean1.0Show the generated SQL in the command-line output.
User property is: hibernate.show_sql.
skipboolean1.0Skip execution - -

If set to true, the execution is skipped.

- -

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

- -

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

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


Default value is: ${maven.test.skip}.
User property is: hibernate.schema.skip.
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!

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!


User property is: project.build.testOutputDirectory.
urlString1.0Database URL.
User property is: hibernate.connection.url.
usernameString1.0Database username
User property is: hibernate.connection.username.
-
- -
-

Parameter Details

- -

createNamespaces:

- -
Specifies whether to automatically create also the database -schema/catalog.
- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.hbm2dll.create_namespaces
  • - -
  • Default: false
  • -

-

delimiter:

- -
Delimiter in output-file. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.delimiter
  • - -
  • Default: ;
  • -

-

dialect:

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

-

driver:

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

-

export:

- -
Export the database-schma to the database. If set to -false, only the SQL-script is created and the database -is not touched. - -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.export
  • - -
  • Default: true
  • -

-

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.

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.force
  • - -
  • Default: false
  • -

-

format:

- -
Format output-file.
- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.format_sql
  • -

-

hibernateConfig:

- -
Path to Hibernate configuration file (.cfg.xml). If this parameter -is specified, the plugin will try to load configuration values from -a file with the given path or a ressource on the classpath with the -given name. If both fails, the execution of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.cfg.xml on the -classpath, if it is present, but will not fail if there is no such -ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.

- -

Settings in this file will overwrite settings in the properties -file.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.1.0
  • - -
  • Required: No
  • -

-

hibernateProperties:

- -
Path to a file or name of a ressource with hibernate properties. If -this parameter is specified, the plugin will try to load -configuration values from a file with the given path or a ressource -on the classpath with the given name. If both fails, the execution -of the plugin will fail. - -

If this parameter is not set the plugin will load configuration -values from a ressource named hibernate.properties on -the classpath, if it is present, but will not fail if there is no -such ressource.

- -

During ressource-lookup, the test-classpath takes -precedence.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • -

-

implicitNamingStrategy:

- -
Implicit naming strategy
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.implicit_naming_strategy
  • -

-

mappings:

- -
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
  • -

-

outputDirectory:

- -
Classes-Directory to scan. - -

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

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

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

-

outputFile:

- -
Output file. - -

If the specified filename is not absolut, the file will be -created relative to the project build directory -(project.build.directory).

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.export.create
  • - -
  • Default: create.sql
  • -

-

password:

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

-

persistenceUnit:

- -
Name of the persistence-unit. If this parameter is specified, the -plugin will try to load configuration values from a -persistence-unit with the specified name. If no such -persistence-unit can be found, the plugin will throw an exception. - -

If this parameter is not set and there is only one -persistence-unit available, that unit will be used automatically. -But if this parameter is not set and there are multiple -persistence-units available on, the class-path, the execution of -the plugin will fail.

- -

Settings in this file will overwrite settings in the properties -or the configuration file.

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.1.0
  • - -
  • Required: No
  • -

-

physicalNamingStrategy:

- -
Physical naming strategy
- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.physical_naming_strategy
  • -

-

scanClasses:

- -
Wether the project should be scanned for annotated-classes, or not - -

This parameter is intended to allow overwriting of the parameter -exclude-unlisted-classes of a -persistence-unit. If not specified, it defaults to -true

- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 2.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.scan.classes
  • -

-

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.schema.scan.dependencies
  • - -
  • Default: compile
  • -

-

scanTestClasses:

- -
Whether to scan the test-branch of the project for annotated -classes, or not. - -

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

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 1.0.1
  • - -
  • Required: No
  • - -
  • User Property: hibernate.schema.scan.test_classes
  • - -
  • Default: false
  • -

-

show:

- -
Show the generated SQL in the command-line output.
- -
    - -
  • Type: java.lang.Boolean
  • - -
  • Since: 1.0
  • - -
  • Required: No
  • - -
  • User Property: hibernate.show_sql
  • -

-

skip:

- -
Skip execution - -

If set to true, the execution is skipped.

- -

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

- -

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

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

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

-

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!

- -

Important: This configuration value can only be -configured through the pom.xml, or by the definition -of a system-property, because it is not known by Hibernate nor JPA -and, hence, not picked up from their configuration!

- -
    - -
  • Type: java.lang.String
  • - -
  • Since: 1.0.2
  • - -
  • Required: No
  • - -
  • User Property: project.build.testOutputDirectory
  • -

-

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
  • -
-
-
- - -
-
- - -
-
- -
- - -