it relies on reference equality, but that is broken if the Id is serialized. The solution is to either make it not serializable, or compare the serial Long.
it relies on reference equality, but that is broken if the Id is serialized.
The solution is to either make it not serializable, or compare the serial Long.