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
You should have a look at minuteproject on this track reverse-engineering for JPA2. It is a vendor independent tool. In release 0.5.5 it generates:
I have not tried it with H2 but to do this you need to