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 configureHibernate Code Generation Configuration
- Optional : Generate class file for
ReverseEngineering Strategy
, which is extendsDelegatingReverseEngineeringStrategy
If I truly understand your question, then you may want to use HibernateTools to generate Pojo classes from MySQL mappings.
精彩评论