-->
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: composite map-key
PostPosted: Wed Dec 14, 2005 10:52 pm 
Beginner
Beginner

Joined: Tue Nov 01, 2005 5:21 am
Posts: 24
I have table A with column CA, CB, CC to map to map collection for one-to-many association. CA and CB are primary keys. CA is foreign key. I want to map table A to class A with properties ca, cb and cc. Both CA and CB are String type.

what is the mapping definition? And what is the key of class A?

Hope someone could help me with this.
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 15, 2005 10:14 pm 
Beginner
Beginner

Joined: Tue Nov 01, 2005 5:21 am
Posts: 24
No one can help me?

I urgently need help!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 16, 2005 10:25 am 
Regular
Regular

Joined: Thu Nov 13, 2003 2:55 am
Posts: 71
Location: Sweden
The key should be a component-id (manual chapter 5.1.5 ad 8.4) or composite-id.

(Tips: pointing out it is "urgent" is usually a good way NOT to get help on an e-mail list or forum... Urgent usually means "I have not tried myself yet, please do it for me")


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.