Revert "HHH-12592 - Fix merging detached enhanced entities with orphan-removal collections."
This reverts commit 4f119105f8
.
This commit is contained in:
parent
c3c0cd550f
commit
e1b08967d9
|
@ -689,15 +689,10 @@ public abstract class CollectionType extends AbstractType implements Association
|
||||||
|
|
||||||
// for a null target, or a target which is the same as the original, we
|
// for a null target, or a target which is the same as the original, we
|
||||||
// need to put the merged elements in a new collection
|
// need to put the merged elements in a new collection
|
||||||
Object result;
|
Object result = ( target == null ||
|
||||||
if ( target == LazyPropertyInitializer.UNFETCHED_PROPERTY ) {
|
target == original ||
|
||||||
result = original;
|
target == LazyPropertyInitializer.UNFETCHED_PROPERTY ) ?
|
||||||
}
|
instantiateResult( original ) : target;
|
||||||
else {
|
|
||||||
result = ( target == null || target == original ) ?
|
|
||||||
instantiateResult( original ) :
|
|
||||||
target;
|
|
||||||
}
|
|
||||||
|
|
||||||
//for arrays, replaceElements() may return a different reference, since
|
//for arrays, replaceElements() may return a different reference, since
|
||||||
//the array length might not match
|
//the array length might not match
|
||||||
|
|
Loading…
Reference in New Issue