-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Foreign Key Error
PostPosted: Mon Dec 12, 2005 12:05 pm 
Newbie

Joined: Tue Aug 23, 2005 11:38 am
Posts: 14
After creating a mapping for 2 tables, I run my test it fails while loading up the configuration file with the following error (Foreign key (FKFE1D23E2CEA9600F:Pet_Table[Owner_ID])) must have same number of columns as the referenced primary key (Owner_Table [Owner_ID, Pet_ID])

We have a 1 to many relationship. The parent table (Owner) has 1 pk )Owner_ID) and the child table (Pet) has 2 pks (Owner ID and Pet ID)because of the releationship. This is Sybase


Any help in this regard is appreciated. I am using MyEclipse 4.0.3 GA (Hibernate 3.0)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 12, 2005 12:39 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
mapping files?

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.