1. Many To One: Foreign Key contraint Fails forum.hibernate.orgHello, I am having difficulty understanding what I feel is a simple association. I have a "Listing" that is related to a "Category" and belongs to a "Account". I do NOT want there to be a foreign key in either the Category or Account table relating to the Listing. But the Listing table will have foreign keys to both the Account ... |
2. Where does this foreign key contraint come from? forum.hibernate.org |
3. error: "foreign key contraint fails" when saving forum.hibernate.orgNewbie Joined: Tue Jan 17, 2006 5:18 pm Posts: 4 Hi, I'm learning Hibernate and I keep getting the same error messages when saving a object. I've searched the forum and read the manual, but can't figure this one out. Please help. I've got 2 Tables: Parent and Child: Code: CREATE TABLE `parent` ( `id` int(11) NOT NULL auto_increment, ... |