HHH-17075 Lazy loading of association with non-PK referencedColumnName always yields null when bytecode enhancement is enabled
This commit is contained in:
parent
0648af5ec7
commit
ec11992b86
|
@ -144,6 +144,7 @@ public class EntityDelayedFetchInitializer extends AbstractFetchParentAccess imp
|
|||
if ( parentAccess != null
|
||||
&& !parentAccess.isEmbeddableInitializer()
|
||||
&& isEnhancedForLazyLoading( parentEntityInitializer ) ) {
|
||||
entityInstance = LazyPropertyInitializer.UNFETCHED_PROPERTY;
|
||||
return;
|
||||
}
|
||||
entityInstance = concreteDescriptor.loadByUniqueKey(
|
||||
|
|
Loading…
Reference in New Issue