mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-12 06:04:49 +00:00
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 @@ else if ( types[i].isComponentType() ) {
|
||||
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…
x
Reference in New Issue
Block a user