Fork me on GitHub

hibernate-tools:hbm2ddl

Full name:

com.github.stadler:hibernate-tools-maven-plugin:0.1.1:hbm2ddl

Description:

Mojo to generate DDL Scripts from an existing database.

See https://docs.jboss.org/tools/latest/en/hibernatetools/html_single/#d0e4651

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: generate-resources.

Optional Parameters

Name Type Since Description
configFile File - (no description)
Default value is: ${project.basedir}/src/main/hibernate/hibernate.cfg.xml.
createCollectionForForeignKey boolean - (no description)
Default value is: true.
createManyToOneForForeignKey boolean - (no description)
Default value is: true.
delimiter String - (no description)
Default value is: ;.
detectManyToMany boolean - (no description)
Default value is: true.
detectOneToOne boolean - (no description)
Default value is: true.
detectOptimisticLock boolean - (no description)
Default value is: true.
format boolean - (no description)
Default value is: true.
haltOnError boolean - (no description)
Default value is: true.
outputDirectory File - (no description)
Default value is: ${project.build.directory}/generated-resources/.
outputFileName String - (no description)
Default value is: schema.ddl.
packageName String - (no description)
revengFile File - (no description)
schemaExportAction SchemaExport$Action - (no description)
Default value is: CREATE.
targetTypes Set - (no description)
Default value is: SCRIPT.

Parameter Details

configFile:

(no description)
  • Type: java.io.File
  • Required: No
  • Default: ${project.basedir}/src/main/hibernate/hibernate.cfg.xml

createCollectionForForeignKey:

(no description)
  • Type: boolean
  • Required: No
  • Default: true

createManyToOneForForeignKey:

(no description)
  • Type: boolean
  • Required: No
  • Default: true

delimiter:

(no description)
  • Type: java.lang.String
  • Required: No
  • Default: ;

detectManyToMany:

(no description)
  • Type: boolean
  • Required: No
  • Default: true

detectOneToOne:

(no description)
  • Type: boolean
  • Required: No
  • Default: true

detectOptimisticLock:

(no description)
  • Type: boolean
  • Required: No
  • Default: true

format:

(no description)
  • Type: boolean
  • Required: No
  • Default: true

haltOnError:

(no description)
  • Type: boolean
  • Required: No
  • Default: true

outputDirectory:

(no description)
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/generated-resources/

outputFileName:

(no description)
  • Type: java.lang.String
  • Required: No
  • Default: schema.ddl

packageName:

(no description)
  • Type: java.lang.String
  • Required: No

revengFile:

(no description)
  • Type: java.io.File
  • Required: No

schemaExportAction:

(no description)
  • Type: org.hibernate.tool.hbm2ddl.SchemaExport$Action
  • Required: No
  • Default: CREATE

targetTypes:

(no description)
  • Type: java.util.Set
  • Required: No
  • Default: SCRIPT