Generate JPA 2 Entities from existing Database

will824 picture will824 · Apr 29, 2011 · Viewed 92k times · Source

How can I generate JPA2 compliant @Entity from existing Databases?.

I found this: Question

Still its not clear if JBoss will generate compliant JPA2 and also I would like to know if there is a vendor independent way to do this.

Answer

Edwin Dalorzo picture Edwin Dalorzo · Apr 29, 2011

You can use a plugin like Eclipse Dali to do the trick for you. You can refer to the documentation, section 3.11 Generating Entities from Tables.

I do not know of any specific vendor independent tool to do this, though.