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: Help Required On Composite Keys
PostPosted: Tue Oct 03, 2006 9:31 am 
Beginner
Beginner

Joined: Wed Aug 30, 2006 2:06 am
Posts: 24
Hi,

I have a table with composite primary key. How should i design my entity class and the mapping file for this? can any one help me in this regard?

Table Structure:
Organization

OrganizationId + UserId - Primary Key

Thanks in advance
Vijay


Top
 Profile  
 
 Post subject: Re: Help Required On Composite Keys
PostPosted: Tue Oct 03, 2006 10:13 am 
Expert
Expert

Joined: Thu Jan 19, 2006 4:29 pm
Posts: 348
See documenation about composite-id http://www.hibernate.org/hib_docs/nhibernate/html/mapping.html#mapping-declaration-compositeid

Gert

_________________
If a reply helps You, rate it!


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.