This section presents the project overview, common doubts and workaround tips.
At the moment only Hibernate Tools is supported. The plugin was built on top of the Reveng Hibernate Tool with the addition of:
ORM Generator supports all the Hibernate natively supported databases. See the full list here.
ORM Generator generated code for the DIF2 platform. This is a mandatory dependency, unless you change the reverse engineering templates witch reference these classes. Doing so you will surely loose substantial functionalities, given by the DIF2 Model package.
ORM Generator allows for several configuration parameters and configuration files. You can read how to use them in the User Guide section.
By default, ORM Generator uses the configuration files from the "src/main/config" directory for the reverse engineering process.
If you wish to provide a different configuration for packaging/deploy you should add it to the src/main/resources, as specified by Maven.
All content on "src/main/config" will be ignored by Maven in the packaging process.
Yes, you can. Place the code in the "dao/auto/impl" folder of your model package and ORM Generator will pick it up and link to it. See the User Guide for more details on how to do this.
By convention your hibernate configuration file must have a name like this: "dataSourceName".cfg.xml, where "dataSourceName" is the name you have provided in the dataSourceName parameter of the ORM Generator Plugin.
You should rename your hibernate.cfg.xml in both config and resource folders to this notation.