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