HHH-16970 Fix owner access for eager collection initializer
This commit is contained in:
parent
7170be02db
commit
392d539c8c
|
@ -212,8 +212,11 @@ public abstract class AbstractImmediateCollectionInitializer extends AbstractCol
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( getParentAccess() != null ) {
|
final FetchParentAccess entityParentAccess = getParentAccess() != null ?
|
||||||
getParentAccess().registerResolutionListener(
|
getParentAccess().findFirstEntityDescriptorAccess() :
|
||||||
|
null;
|
||||||
|
if ( entityParentAccess != null ) {
|
||||||
|
entityParentAccess.registerResolutionListener(
|
||||||
owner -> collectionInstance.setOwner( owner )
|
owner -> collectionInstance.setOwner( owner )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue