Print
Category: Java
Hits: 589

How to automatically generate Java code and hbm xml files using eclipse tools

1. Create hibernate.cfg.xml and hibernate.reveng.xml using wizard.
2. Use Hibernate Code Generation under the eclipse Run menu to create a new configuration using the prior two files and create code/xml/schema
3. Resulted test code need the Apache common logging jar to compile