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. 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. Try using OPENJPA Reverse mapping tools. They offer lot more facility and are easy to configure. This example would clarify. If you are using maven as