| If "Hibernate assumes that 2 entities with the same ID represent the same entity", then Hibernate is making assumptions that contradict the specification. Specifically, when the Java reference on a @MapsId is updated (particularly, set to null), the physical ID field is supposed to track it. Please see also HHH-12305 Open and HHH-9663 Closed . |