-->
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: Mapping composite keys in one-many
PostPosted: Tue Dec 27, 2005 9:13 am 
Newbie

Joined: Tue Dec 27, 2005 9:00 am
Posts: 1
Hibernate 2.1.6

Hi

I have the following tables and keys

client --> client (primary key)
client_category -> client, classification_category, classification
(composite key)
classification -> classification_category, classification
(composite key)
I am able to map client.client with client_category.client

How do I map the composite key
client_classification[classification_category, classification ]
with
classification[classification_category, classification ]
in the client_category hbm file

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 28, 2005 4:33 am 
Expert
Expert

Joined: Thu May 26, 2005 9:19 am
Posts: 262
Location: Oak Creek, WI
Hi,

I am not clear about the associations with your Information.

If you use one-many use key-many-to-one or key word correspondingly in the compsite key.

OR Give your mapping files with the relations to help you out.

_________________
RamnathN
Senior Software Engineer
http://www.linkedin.com/in/ramnathn
Don't forget to rate.


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.