-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to map tow ForeignKey to one PrimaryKey?
PostPosted: Tue Oct 16, 2007 2:54 am 
Newbie

Joined: Tue Oct 16, 2007 2:46 am
Posts: 3
I have this two tables:

table1
------------
id <--- Primary key
id1


table2
-------------
id3 <------- Primary key
id
id1


And i want map {id,id1} from table2 to {id, id1} from table1 (two -> two). Please hekp me... i read only cant if table1 have two primarykey but i dont know if its really... (sorry for my english).


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 16, 2007 3:59 am 
Newbie

Joined: Mon Oct 15, 2007 10:01 am
Posts: 3
http://forum.hibernate.org/viewtopic.ph ... 494fca14f4


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 16, 2007 4:34 am 
Newbie

Joined: Tue Oct 16, 2007 2:46 am
Posts: 3
i think, i cant use it. because i have one primary an other colum in table1 and
i want foreign key for two colums from table2. And i dont know if one table can receive 2 foreign key if the table have only one primary. You understand me? How do i can do it?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.