On Jul 9, 2008, at 12:19 PM, syg6 wrote:
Hmmm ...
Shouldn't you also stick 'MyObject1' and 'MyObject2' in the
hashCode() and
toString() methods, just to be safe (ie. make it easier for
Hibernate to
uniquely identify the object by giving it more fields as criteria)?
Yes, but - what are MyObject1 and MyObject2? Unless I'm forgetting
something, they'll either be @Transient, @Embedded properties or
custom User Types?
I don't use Collections in hashCode() and toString(). Too many
problems.
Agreed. I don't think its best practise either.
Thanks for the reply!
Bob
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]