-->
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: equals automation?
PostPosted: Tue Feb 10, 2009 3:44 pm 
Newbie

Joined: Tue Feb 10, 2009 3:31 pm
Posts: 3
Hi all,

I just wondered whether there's a helper class or an other mechanism in hibernate which calculates hashCode() values and performs the equals()-method.

If not, take my question as a feature request.
It shouldn't be too difficult to build since hibernate has all needed information about the objects properties in its mapping files and already makes strong use of reflection.

Furthermore all information about the consideration of detail objects in equals() and hashCode() can be retrieved from the hibernate mappings, too. I.e. the question whether the hashcode of associated detail objects should be included in an objects hashcode can be answered by the cascade-attribute of the association mapping.

_________________
garage door opener installer aurora
custom awards


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.