caching to
hashcode values, but still, understanding and writing a proper equals/hashcode
manually looks a much easier/safer path for me.
Adam Hardy wrote:
I put a superclass on all my entities for a couple of general properties
that they all share, and now I'm considering putting my equals() an
s/hashcode
manually looks a much easier/safer path for me.
my 2c,
Kristof
Adam Hardy wrote:
> I put a superclass on all my entities for a couple of general properties
> that they all share, and now I'm considering putting my equals() and
> hashCode() methods into the superclass as
I put a superclass on all my entities for a couple of general properties that
they all share, and now I'm considering putting my equals() and hashCode()
methods into the superclass as well, with reflection to loop over the array of
child methods, calling whatever POJO getters are present.