Maven Hibernate3 Plugin
This plugin provides easy integration with Hibernate 3.x for your project.
Goals Overview
The Maven Hibernate3 Plugin has seven goals.
- hibernate3:hbm2cfgxml: Generates hibernate.cfg.xml
- hibernate3:hbm2ddl: Generates database schema.
- hibernate3:hbm2doc: Generates HTML documentation for the database schema.
- hibernate3:hbm2hbmxml: Generates a set of hbm.xml files
- hibernate3:hbm2java: Generates Java classes from set of *.hbm.xml files
- hibernate3:hbmtemplate: Renders arbitrary templates against Hibernate Mapping information.
Usage
Instructions on how to use the Maven Hibernate3 Plugin can be found on the usage page.
Examples
- Simple plugin configuration.
- hbmtemplate plugin configuration.
- Setting the hbm2ddl goal to run on the process-classes phase.
- Output the hbm2ddl goal to a file.