-->
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: Surrogate keys
PostPosted: Tue Jan 29, 2008 3:36 pm 
Newbie

Joined: Thu Nov 16, 2006 3:48 pm
Posts: 3
I know that Hibernate recommend to use Surrogate Keys. Our DBA's needed some document from hibernate which says that surrogate keys is recommended. I did not find any article from the hibernate site. Can you tell me where can i get that document.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 29, 2008 3:55 pm 
Expert
Expert

Joined: Mon Nov 26, 2007 2:29 pm
Posts: 443
4.3. Implementing equals() and hashCode()

Quote:
We recommend implementing equals() and hashCode() using Business key equality. Business key equality means that the equals() method compares only the properties that form the business key, a key that would identify our instance in the real world (a natural candidate key):


I doubt the retarded mind of a DBA would understand this anyway, but good luck.

_________________
Gonzalo Díaz


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.