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.  [ 1 post ] 
Author Message
 Post subject: Mapping Alternate Keys
PostPosted: Wed Nov 12, 2003 6:06 pm 
Newbie

Joined: Wed Nov 12, 2003 4:57 pm
Posts: 14
Location: New York City
I have recently looked into the concept of alternate keys. While this is not physically implemented by any major database vendor as far as I understand, it can be faked. If you make a column not-null and unique, it is, for all intents and purposes a primary key (or candidate key).

My question is, is there any way to make hibernate recognize a not-null unique column as special and allow me to use session.load to get the object that has that "alternate key"? Can I have more than one <id> element?

If you are interested in this topic, I found an interesting thread discussing it here:

http://groups.google.com/groups?hl=en&l ... 26rnum%3D1


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.