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 automa开发者_Python百科tically, is there any tool for this job? Thanks a lot.
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).
精彩评论