HHH-8750 : Move load plan implementations from spi to internal
This commit is contained in:
parent
14a9d776b1
commit
c188767510
|
@ -580,16 +580,10 @@ public class LoadQueryJoinAndFetchProcessor {
|
||||||
selectStatementBuilder.appendOrderByFragment( ordering );
|
selectStatementBuilder.appendOrderByFragment( ordering );
|
||||||
}
|
}
|
||||||
|
|
||||||
// add an EntityReferenceInitializer for the collection elements (keys also?)
|
|
||||||
final EntityReferenceAliases entityReferenceAliases = new EntityReferenceAliasesImpl(
|
|
||||||
aliases.getCollectionTableAlias(),
|
|
||||||
aliases.getEntityElementColumnAliases()
|
|
||||||
);
|
|
||||||
aliasResolutionContext.registerQuerySpaceAliases( fetch.getQuerySpaceUid(), entityReferenceAliases );
|
|
||||||
readerCollector.add(
|
readerCollector.add(
|
||||||
new EntityReferenceInitializerImpl(
|
new EntityReferenceInitializerImpl(
|
||||||
(EntityReference) fetch.getElementGraph(),
|
(EntityReference) fetch.getElementGraph(),
|
||||||
entityReferenceAliases
|
aliasResolutionContext.resolveEntityReferenceAliases( fetch.getElementGraph().getQuerySpaceUid() )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -611,15 +605,10 @@ public class LoadQueryJoinAndFetchProcessor {
|
||||||
aliases.getEntityElementColumnAliases().getSuffix()
|
aliases.getEntityElementColumnAliases().getSuffix()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
final EntityReferenceAliases entityReferenceAliases = new EntityReferenceAliasesImpl(
|
|
||||||
aliases.getElementTableAlias(),
|
|
||||||
aliases.getEntityElementColumnAliases()
|
|
||||||
);
|
|
||||||
aliasResolutionContext.registerQuerySpaceAliases( fetch.getQuerySpaceUid(), entityReferenceAliases );
|
|
||||||
readerCollector.add(
|
readerCollector.add(
|
||||||
new EntityReferenceInitializerImpl(
|
new EntityReferenceInitializerImpl(
|
||||||
(EntityReference) fetch.getElementGraph(),
|
(EntityReference) fetch.getElementGraph(),
|
||||||
entityReferenceAliases
|
aliasResolutionContext.resolveEntityReferenceAliases( fetch.getElementGraph().getQuerySpaceUid() )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue