Using Hibernate reverse engineering creates mappingResources style but I need annotatedClasses.
Anyway to make “Hibernate reverse engineering” to make the code annotatedClasses style and not mappingResources style?
I am trying to take a large mySQL database and make java classes with annotated in them.
Please let me know if anyone has done this
You can achieve that with Hibernate Tools, an
Eclipseplugin.Take a look at this tutorial. Every steps are explains. When you are generating the
.javafiles, you can choose betweenxmlfile andJPAannotations.To generate annotations, check
Generate EJB3 annotationsandUse Java 5 syntax