Skip to content
Advertisement

How to create entity classes using database for all the existing tables?

I am having tables created by a DBA and I intend to have entity classes for each table for further querying. Can any one suggest how to automatically create the entity classes using Eclipse?

Advertisement

Answer

If you use JPA for persistence, you can use “JPA tools” provided by Eclipse to generate java entity class from tables.

Here is the [tutorial][1]

[1]: http://shengwangi.blogspot.com/2014/12/how-to-create-java-classes-from-tables.html on my personal website.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement