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
|