eclipse plugin to create hibernate annotated entities?

10,936

Solution 1

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

Solution 2

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. enter image description here

Share:
10,936
Mahmoud Saleh
Author by

Mahmoud Saleh

I am Mahmoud Saleh an Enthusiastic Software Engineer, Computer Science Graduate, Experienced in developing J2EE applications, Currently developing with Spring,JSF,Primefaces,Hibernate,Filenet. Email: [email protected] Linkedin: https://www.linkedin.com/in/mahmoud-saleh-60465545? Upwork: http://www.upwork.com/o/profiles/users/_~012a6a88e04dd2c1ed/

Updated on June 14, 2022

Comments

  • Mahmoud Saleh
    Mahmoud Saleh almost 2 years

    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.

  • Mahmoud Saleh
    Mahmoud Saleh over 12 years
    hmmmmmmmm, i was thinking of something like a wizard to enter the fields and the relations and annotations.
  • Suvasis
    Suvasis over 10 years
    Could you please elaborate on how to Generate JPA annotations using hibernate tools. I am looking for simillar kind of process.