X-Git-Url: https://juplo.de/gitweb/?p=website;a=blobdiff_plain;f=dist%2Fhibernate-maven-plugin-2.1.0%2Fupdate-mojo.html;fp=dist%2Fhibernate-maven-plugin-2.1.0%2Fupdate-mojo.html;h=0000000000000000000000000000000000000000;hp=29e383a624d8dfe147022a4a8a1a099c0fbc3e0f;hb=b293b312d6f0dd8b2dc716375fd442dd295a9942;hpb=9179a67d9952d3b63e95686dbd6cacd3c9e13cb2 diff --git a/dist/hibernate-maven-plugin-2.1.0/update-mojo.html b/dist/hibernate-maven-plugin-2.1.0/update-mojo.html deleted file mode 100644 index 29e383a6..00000000 --- a/dist/hibernate-maven-plugin-2.1.0/update-mojo.html +++ /dev/null @@ -1,1343 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hibernate Maven Plugin – hibernate:update - - - - -

Path

-

-

    -
-

-
-
- - -
-

hibernate:update

- -

Full name:

- -

de.juplo:hibernate-maven-plugin:2.1.0:update

- -

Description:

- -
Generate/Execute SQL to update the database-schema according to the -configured mappings.
- -

Attributes:

- - - -
-

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.hbm2ddl.delimiter.
dialectString1.0Hibernate dialect.
User property is: hibernate.dialect.
driverString1.0SQL-Driver name.
User property is: hibernate.connection.driver_class.
executeBoolean2.0Excecute the generated SQL. 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.execute.
forceboolean1.0Force generation/execution - -

Force the generation and (if configured) the execution of the -SQL, even if no modified or newly added annotated classes where -found and the configuration 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: update.sql.
User property is: hibernate.schema.update.
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.hbm2ddl.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
  • -

-

execute:

- -
Excecute the generated SQL. 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.execute
  • - -
  • Default: true
  • -

-

force:

- -
Force generation/execution - -

Force the generation and (if configured) the execution of the -SQL, even if no modified or newly added annotated classes where -found and the configuration 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.update
  • - -
  • Default: update.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
  • -
-
-
- - -
-
-

Pages

-

-

-

- -