HHH-17730 Account for immutable embedded ids during merge

This commit is contained in:
Marco Belladelli 2024-02-15 11:56:40 +01:00
parent 76027709b1
commit d29cb697f9
No known key found for this signature in database
GPG Key ID: D1D0C3030AE3AA35
1 changed files with 1 additions and 2 deletions

View File

@ -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) {