How to generate object @Entities from database?

前端 未结 1 877
时光说笑
时光说笑 2020-12-19 06:00

I want to generate JPA\'s @Entitys from database (but I want it to be object oriented). for Example

@Entity
@Table(name = \"badges\")
public cla         


        
相关标签:
1条回答
  • 2020-12-19 06:13

    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!

    0 讨论(0)
提交回复
热议问题