-->
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: Unique composite alternate key
PostPosted: Wed Sep 29, 2004 4:12 pm 
Regular
Regular

Joined: Wed Jun 30, 2004 4:02 pm
Posts: 64
I finally broke down and eliminated my composite primary keys for any tables that have additional columns other than the key columns. Now the question is, can I model this with a composite alternate key, and my synthetic primary key?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 29, 2004 5:47 pm 
Regular
Regular

Joined: Wed Jun 30, 2004 4:02 pm
Posts: 64
I found on page 354 of Hibernate in Action, that there is an attribute: unique-key in addition to unique. Xdoclet has support for this as well. I was making it harder than necessary I guess. I thought I needed an external class as I did when I was using a composite primary key.


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.