Search code examples
javacode-generationpersistenceentityjpa-2.0

Generate JPA 2 Entities from existing Database


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.


Solution

  • 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.