Fix ToOneAttributeMapping tableGroup creation
This commit is contained in:
parent
fa694c5d41
commit
d616f2aa55
|
@ -415,21 +415,16 @@ public class LoaderSelectBuilder {
|
||||||
}
|
}
|
||||||
else if ( part instanceof ToOneAttributeMapping ) {
|
else if ( part instanceof ToOneAttributeMapping ) {
|
||||||
final ToOneAttributeMapping toOneAttributeMapping = (ToOneAttributeMapping) part;
|
final ToOneAttributeMapping toOneAttributeMapping = (ToOneAttributeMapping) part;
|
||||||
if ( toOneAttributeMapping.getSideNature() == ForeignKeyDescriptor.Nature.TARGET ) {
|
final TableGroupJoin tableGroupJoin = toOneAttributeMapping.createTableGroupJoin(
|
||||||
final TableGroupJoin tableGroupJoin = toOneAttributeMapping.createTableGroupJoin(
|
navigablePath,
|
||||||
navigablePath,
|
rootTableGroup,
|
||||||
rootTableGroup,
|
null,
|
||||||
null,
|
SqlAstJoinType.LEFT,
|
||||||
SqlAstJoinType.LEFT,
|
true,
|
||||||
true,
|
sqlAstCreationState
|
||||||
sqlAstCreationState
|
);
|
||||||
);
|
tableGroup = tableGroupJoin.getJoinedGroup();
|
||||||
tableGroup = tableGroupJoin.getJoinedGroup();
|
sqlAstCreationState.getFromClauseAccess().registerTableGroup( navigablePath, tableGroup );
|
||||||
sqlAstCreationState.getFromClauseAccess().registerTableGroup( navigablePath, tableGroup );
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
tableGroup = rootTableGroup;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
tableGroup = rootTableGroup;
|
tableGroup = rootTableGroup;
|
||||||
|
|
Loading…
Reference in New Issue