Java records are by definition immutable, but org.hibernate.type.ComponentType#replace is ignoring that and trying to replace single changed property. Adding simple check to return original object when component class is record will fix this particular problem. |