views:

21

answers:

1

Hello, I just have the db schema, and want to get the corresponding java classes for them in hibernate, and I do not want the hbm xml file style, so want to get the java classes with annotation generated automatically, is there any tool for this job? Thanks a lot.

A: 

The reverse engineering module of Hibernate Tools for Eclipse and Ant can generate Java classes using EJB annotations. Can also be used from Maven (see the Hibernate3 Maven plugin).

NetBeans also has a reverse engineering module for Hibernate (that leverages the above one I believe).

Pascal Thivent