mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
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 @@ && isEnhancedForLazyLoading( parentEntityInitializer ) ) {
|
||||
if ( parentAccess != null
|
||||
&& !parentAccess.isEmbeddableInitializer()
|
||||
&& isEnhancedForLazyLoading( parentEntityInitializer ) ) {
|
||||
entityInstance = LazyPropertyInitializer.UNFETCHED_PROPERTY;
|
||||
return;
|
||||
}
|
||||
entityInstance = concreteDescriptor.loadByUniqueKey(
|
||||
|
Loading…
x
Reference in New Issue
Block a user