-->
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: primary composite-id and mapping
PostPosted: Fri Feb 23, 2007 7:22 pm 
Newbie

Joined: Fri Feb 23, 2007 7:13 pm
Posts: 3
Hello...

I have a problem with composite-id..

I have 2 tables. Each one having a composite primary key.
The first composed-primary key is made with two columns and the second one
is formed with the 2 columns of the first primary key plus 2 others columns.


| Table 1 | | Table 2 |
| | <====| |
|composite-id | | composite-id |
| pk1 | pk2 | |pk1|pk2|pk3|pk4|




How can I map this association????

I have tried something like <many-to-one>, <one-to-many> but it doesn't work.
Same think with <key-many-to-one>... I am trying to use it on several columns....

How can I use those tag???

Help me please.... thank you.

Frederic


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.