-->
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.  [ 1 post ] 
Author Message
 Post subject: Foreign key to compsite-id
PostPosted: Thu Apr 13, 2006 10:13 pm 
Newbie

Joined: Fri Sep 23, 2005 4:07 am
Posts: 4
How can I handle foreign key to composite-id(mapping file, persitence class, query...) ?

Example: 2 table
Table1
COL11 INT PK,
COL12 INT PK

Table2
COL21 INT PK,
COL11 INT PK,
COL21 INT PK

{COL11,COL12} in Table1 are composite id in Table1
{COL21,COL11,COL12} in Table2 are composite id in Table2
and {COL11,COL12} in Table2 reference to those in Table1.

Thanks very much for your help


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

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.