开发者

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

开发者 https://www.devze.com 2023-02-16 05:13 出处:网络
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 fieldsand getters and settersUse Hiberna

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

精彩评论

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