I want to generate JPA\'s @Entity
s from database (but I want it to be object oriented). for Example
@Entity
@Table(name = \"badges\")
public cla
Use JBoss Tools (formerly hibernate tools).
Quote from their site:
Reverse Engineering: The most powerful feature of Hibernate Tools is a database reverse engineering tool that can generate domain model classes and Hibernate mapping files, annotated EJB3 entity beans, HTML documentation or even an entire JBoss Seam application in seconds!