HHH-15554 Merge of an Entity with an immutable composite user type throws NPE
This commit is contained in:
parent
89bd029bce
commit
fe1ff7a829
|
@ -207,7 +207,7 @@ public class TypeHelper {
|
|||
copyCache,
|
||||
foreignKeyDirection
|
||||
);
|
||||
if ( target[i] != null && objects != null ) {
|
||||
if ( componentType.isMutable() && target[i] != null && objects != null ) {
|
||||
componentType.setPropertyValues( target[i], objects );
|
||||
}
|
||||
copied[i] = target[i];
|
||||
|
|
Loading…
Reference in New Issue