Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A tool for converting database tables to entity java classes for hibernate

Tags:

java

hibernate

I need a tool for converting database tables to entity java files for hibernate.

There are 20 tables (mysql) and I don't want to copy table's column name to my Java file and so on.

Any suggestions ?

Thanks.

like image 731
Altug Avatar asked Feb 22 '26 08:02

Altug


2 Answers

Hibernate Tools.

Keep in mind that entity classes / mappings that Database Reverse Engineering tool will generate may not be ideal (depending on complexity of your database) and you'll have to manually update them.

Take a look at this question as well.

like image 138
ChssPly76 Avatar answered Feb 23 '26 23:02

ChssPly76


If you have sql schema, you can use https://converter.aldoraweb.com to convert itenter image description here

like image 22
aldora372 Avatar answered Feb 23 '26 22:02

aldora372