| I've attached a very minimal example: hibernate_test.sql creates the sample table with one UUID field that's the primary key. hibernate2_reveng.xml is my reverse engineering file that selects just this table. HibernateTest.java is the output class, which is missing the primary key as an argument to the non-default constructor. |