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
|
if ( parentAccess != null
|
||||||
&& !parentAccess.isEmbeddableInitializer()
|
&& !parentAccess.isEmbeddableInitializer()
|
||||||
&& isEnhancedForLazyLoading( parentEntityInitializer ) ) {
|
&& isEnhancedForLazyLoading( parentEntityInitializer ) ) {
|
||||||
|
entityInstance = LazyPropertyInitializer.UNFETCHED_PROPERTY;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
entityInstance = concreteDescriptor.loadByUniqueKey(
|
entityInstance = concreteDescriptor.loadByUniqueKey(
|
||||||
|
|
Loading…
Reference in New Issue