Avoid using references to the id in the persistent class's method equals() | CAST Appmarq