开发者

is it possible to generate java class file with hibernate annotation from mysql table in eclispe

I have mysql table with various fields.

Is it开发者_开发问答 possible to automatic generate java file in eclispe with mapping of mysql table columns with java fields and getters and setters


Use Hibernate Tools

EDIT :

Refer Hibernate Tools Reference Guide.

The important step is

  • Create and configure hibernate.reveng.xml
  • Open perspective Hibernate and configure Hibernate Code Generation Configuration
  • Optional : Generate class file for ReverseEngineering Strategy, which is extends DelegatingReverseEngineeringStrategy


If I truly understand your question, then you may want to use HibernateTools to generate Pojo classes from MySQL mappings.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜