My model classes mix-in IdPK and have the following boiler-plate for equals and hashCode:
class Team extends LongKeyedMapper[Team] with IdPK { .... override def equals (other : Any) = other match { case t : Team if t.id.is == this.id.is => true case _ => false } override def hashCode = this.id.is.hashCode } I'm pretty sure I acquired this boiler-plate for equals and hashCode from this Google Group. Is this implementation for equals and hashCode a good idea? If so, shouldn't it be part of the IdPK trait? -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.