Fork me on GitHub

hibernate-tools:hbm2java

Full name:

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

Description:

Mojo to generate Java JPA Entities from an existing database.

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

Attributes:

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

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.
detectManyToMany boolean - (no description)
Default value is: true.
detectOneToOne boolean - (no description)
Default value is: true.
detectOptimisticLock boolean - (no description)
Default value is: true.
ejb3 boolean - (no description)
Default value is: false.
jdk5 boolean - (no description)
Default value is: false.
outputDirectory File - (no description)
Default value is: ${project.build.directory}/generated-sources/.
packageName String - (no description)
revengFile File - (no description)
templatePath String - (no description)

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

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

ejb3:

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

jdk5:

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

outputDirectory:

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

packageName:

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

revengFile:

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

templatePath:

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