I am working on some school project and have been trying to get my pojos, daos and mapping.xml documents generated.
I get some of my classes generated but others not.
When I select the option "Reverse Engineer from JDBC Connection" I get an Error Message:
I have been working with the Hibernate tools before and had no problems. Does anyone have an idea?
from what I gather is that tResearch has a composite primary key and your only referencing a part of it in the foreign key in tStudent.
Try referencing the entire composite key of tResearch in your foreign key in tStudent
Joined: May 06, 2010
but there are no composite keys in tReseach, just simple foreign key constraints.
Joined: Apr 14, 2009
are you sure? check your sql code, youre using composite PK's in almost all of youre tables:
some of the primary keys in your tables ARE foreign keys