Hi,
I have your book, in that it mentions that
Quote:
In case of a Mutable type, it would return a copy of the argument to be used as a snapshot value. This method is also called when an instance of the type is written to or read from the second level cache.
Are you implying that If I return a copy from deepCopy(), then I have to implement the UserType.equals(x,y) based upon the values and NOT rely on Java Identity?
Currently, my equals looks like this
Code:
public boolean equals(Object x, Object y) {
return ObjectUtils.equals(x, y);
}
Thanks,