mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 00:55:16 +00:00
HHH-17730 Account for immutable embedded ids during merge
This commit is contained in:
parent
76027709b1
commit
d29cb697f9
@ -264,8 +264,7 @@ else if ( subtype.isComponentType() ) {
|
||||
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…
x
Reference in New Issue
Block a user