hibernate4:export

Full name:

de.juplo:hibernate4-maven-plugin:1.0: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

Name Type Since Description
delimiter String - Delimiter in output-file.
Default value is: ;.
driverClassName String - SQL-Driver name.
User property is: hibernate.connection.driver_class.
format boolean - Format output-file.
Default value is: true.
hibernateDialect String - Hibernate dialect.
User property is: hibernate.dialect.
hibernateProperties String - Hibernate configuration file.
Default value is: ${project.build.outputDirectory}/hibernate.properties.
outputDirectory String - Directories to scan.
User property is: project.build.outputDirectory.
outputFile String - Output file.
Default value is: ${project.build.outputDirectory}/schema.sql.
password String - Database password
User property is: hibernate.connection.password.
skip boolean - Skip execution
User property is: maven.test.skip.
target String - Target of execution:
  • NONE do nothing - just validate the configuration
  • EXPORT create database (DEFAULT!)
  • SCRIPT export schema to SQL-script
  • BOTH

Default value is: EXPORT.
type String - Type of export.
  • NONE do nothing - just validate the configuration
  • CREATE create database-schema
  • DROP drop database-schema
  • BOTH (DEFAULT!)

Default value is: BOTH.
url String - Database URL.
User property is: hibernate.connection.url.
username String - Database username
User property is: hibernate.connection.username.

Parameter Details

delimiter:

Delimiter in output-file.
  • Type: java.lang.String
  • Required: No
  • Default: ;

driverClassName:

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

format:

Format output-file.
  • Type: boolean
  • Required: No
  • Default: true

hibernateDialect:

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

hibernateProperties:

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

outputDirectory:

Directories to scan.
  • Type: java.lang.String
  • Required: No
  • User Property: project.build.outputDirectory

outputFile:

Output file.
  • Type: java.lang.String
  • Required: No
  • Default: ${project.build.outputDirectory}/schema.sql

password:

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

skip:

Skip execution
  • Type: boolean
  • Required: No
  • User Property: maven.test.skip

target:

Target of execution:
  • NONE do nothing - just validate the configuration
  • EXPORT create database (DEFAULT!)
  • SCRIPT export schema to SQL-script
  • BOTH
  • Type: java.lang.String
  • Required: No
  • Default: EXPORT

type:

Type of export.
  • NONE do nothing - just validate the configuration
  • CREATE create database-schema
  • DROP drop database-schema
  • BOTH (DEFAULT!)
  • Type: java.lang.String
  • Required: No
  • 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