开发者

Is there any tool for automatically generate java classes with annotation style in hibernate?

开发者 https://www.devze.com 2023-01-02 01:20 出处:网络
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 aut

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消