HHH-15982 Fix bidirectional one-to-one detection for mappedBy side
This commit is contained in:
parent
5f08ffed83
commit
87ba85232f
|
@ -991,7 +991,8 @@ public class ToOneAttributeMapping
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return parentNavigablePath.getLocalName().equals( bidirectionalAttributeName );
|
return parentNavigablePath.getLocalName().equals( bidirectionalAttributeName ) ||
|
||||||
|
parentNavigablePath.getLocalName().equals( identifyingColumnsTableExpression );
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getBidirectionalAttributeName(){
|
public String getBidirectionalAttributeName(){
|
||||||
|
|
|
@ -47,6 +47,7 @@ public class EntitySelectFetchByUniqueKeyInitializer extends EntitySelectFetchIn
|
||||||
// make sure parentEntityInitializer.resolveInstance has been called before
|
// make sure parentEntityInitializer.resolveInstance has been called before
|
||||||
parentEntityInitializer.resolveInstance( rowProcessingState );
|
parentEntityInitializer.resolveInstance( rowProcessingState );
|
||||||
if ( parentEntityInitializer.isInitialized() ) {
|
if ( parentEntityInitializer.isInitialized() ) {
|
||||||
|
isInitialized = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue