I recently read this http://www.angelikalanger.com/Articles/JavaSolutions/SecretsOfEquals/Equals.htmland now, at least for the time being, I take great care when writing hashCode, equals and compareTo. It is a good read if you're not already familiar with the topic.
For what its worth, I tend to use the apache commons builders (HashCodeBuilder, EqualsBuilder and CompareToBuilder) but to your point, I'll have to take a look at what Eclipse can do for me. -Luther On Thu, Apr 2, 2009 at 2:24 PM, James Carman <[email protected]>wrote: > On Thu, Apr 2, 2009 at 3:21 PM, luther.baker <[email protected]> > wrote: > > Found my problem. Found the relationship between validation and then > model > > hydration and finally - that my equals operator was incorrectly comparing > > (that == that). > > Don't you generate your equals() methods? Once I found that nice > little feature in my IDE, I've never looked back. I don't ever write > equals() or hashCode() anymore by hand. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
