mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-13 06:34:50 +00:00
HHH-16970 Fix owner access for eager collection initializer
This commit is contained in:
parent
3bb20da9d1
commit
d78681eaa2
@ -212,8 +212,11 @@ public void resolveInstance(RowProcessingState rowProcessingState) {
|
||||
);
|
||||
}
|
||||
|
||||
if ( getParentAccess() != null ) {
|
||||
getParentAccess().registerResolutionListener(
|
||||
final FetchParentAccess entityParentAccess = getParentAccess() != null ?
|
||||
getParentAccess().findFirstEntityDescriptorAccess() :
|
||||
null;
|
||||
if ( entityParentAccess != null ) {
|
||||
entityParentAccess.registerResolutionListener(
|
||||
owner -> collectionInstance.setOwner( owner )
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user