HHH-17075 Lazy loading of association with non-PK referencedColumnName always yields null when bytecode enhancement is enabled
This commit is contained in:
parent
8d47819f44
commit
a196f0c042
|
@ -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