40
There is an option in the Netbeans IDE to generate entities from a database.
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