i know that hibernate tools can create hibernate entities but the hibernate mapping will be in XML file, but i was wondering if there's a tool to create hibernate entities and the mapping will be with annotations not in XML.
Asked
Active
Viewed 1.1k times
2 Answers
4
Hibernate tools can also generate the annotated entities by reverse engineering of your database. You have to choose Generate EJB3 annotations
and Domain code(.java)
. Refer to the 4.5. Reverse Engineering and Code Generation more info.

Ken Chan
- 84,777
- 26
- 143
- 172
-
hmmmmmmmm, i was thinking of something like a wizard to enter the fields and the relations and annotations. – Mahmoud Saleh Oct 11 '11 at 15:12
3
Write your java code and use Source > Generate Hibernate/Jpa annotations and hibernate tools will do an attempt to add necessary annotations based on that

Max Rydahl Andersen
- 3,630
- 2
- 23
- 28
-
Could you please elaborate on how to Generate JPA annotations using hibernate tools. I am looking for simillar kind of process. – Suvasis Jan 04 '14 at 16:10