HHH-15967 @OneToOne(mappedBy = ..., fetch = LAZY) in embedded referencing an association within another embedded
This commit is contained in:
parent
ecde949c7f
commit
a3038f94fa
|
@ -120,7 +120,7 @@ public class EntityDelayedFetchInitializer extends AbstractFetchParentAccess imp
|
|||
}
|
||||
else {
|
||||
if ( selectByUniqueKey ) {
|
||||
final String uniqueKeyPropertyName = referencedModelPart.getBidirectionalAttributeName();
|
||||
final String uniqueKeyPropertyName = referencedModelPart.getReferencedPropertyName();
|
||||
final Type uniqueKeyPropertyType = ( referencedModelPart.getReferencedPropertyName() == null ) ?
|
||||
concreteDescriptor.getIdentifierType() :
|
||||
session.getFactory()
|
||||
|
|
Loading…
Reference in New Issue