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