-->
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: Doubt regarding primary key
PostPosted: Thu Dec 13, 2007 12:05 pm 
Newbie

Joined: Fri Dec 07, 2007 8:58 am
Posts: 8
How can I define my primary key attributes in the mapping file if a table's primary key consists of more than one column??


Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 13, 2007 2:13 pm 
Newbie

Joined: Mon Jan 03, 2005 3:18 am
Posts: 8
check out http://www.hibernate.org/hib_docs/reference/en/html/mapping.html#mapping-declaration-compositeid

although hibernate supports composite key it is discouraged.


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.