-->
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: Components as composite identifiers and hashCode / equals
PostPosted: Mon Dec 06, 2010 6:59 pm 
Newbie

Joined: Tue Nov 23, 2010 12:30 pm
Posts: 2
I am attempting to implement "8.4. Components as composite identifiers" as described in the reference:
(http://docs.jboss.org/hibernate/core/3. ... ompositeid)
using Java.

Do you know where I can find example code of this implementation?

Specifically I am interested in the hashCode and equals methods.
I have read numerous posts on these methods and object vs row equality, lazy loading, initial null values on ids, and using the method over the field in getting id values, etc. I know the the hashcode and equals methods need to be on the composite id class but are they on the containing class (mapped=false) as well?

What book would you recommend to understand more completely what Hibernate is doing behind the scenes and best practices?

Thanks


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.