HHH-17730 Account for immutable embedded ids during merge
This commit is contained in:
parent
76027709b1
commit
d29cb697f9
|
@ -264,8 +264,7 @@ public class DefaultMergeEventListener
|
|||
copyValues[i] = subtype.deepCopy( propertyValues[i], sessionFactory );
|
||||
}
|
||||
}
|
||||
compositeType.setPropertyValues( idCopy, copyValues );
|
||||
return idCopy;
|
||||
return compositeType.replacePropertyValues( idCopy, copyValues, session );
|
||||
}
|
||||
|
||||
protected void entityIsPersistent(MergeEvent event, MergeContext copyCache) {
|
||||
|
|
Loading…
Reference in New Issue