HHH-14977 - @Where is broken in 6.0

Fix up bad rebase of https://github.com/hibernate/hibernate-orm/pull/4465 (Make TableReference an interface with various sub-classes) on top of this work
This commit is contained in:
Steve Ebersole 2021-12-18 07:43:32 -06:00
parent fe5a7466cf
commit 7c604d7c3b

View File

@ -3561,14 +3561,15 @@ protected Expression createLateralJoinExpression(
this,
creationContext
);
final FilterPredicate filterPredicate = FilterHelper.createFilterPredicate(
getLoadQueryInfluencers(),
(Joinable) pluralAttributeMapping.getCollectionDescriptor(),
tableGroup
pluralAttributeMapping.applyBaseRestrictions(
subQuerySpec::applyPredicate,
tableGroup,
true,
getLoadQueryInfluencers().getEnabledFilters(),
null,
this
);
if ( filterPredicate != null ) {
subQuerySpec.applyPredicate( filterPredicate );
}
getFromClauseAccess().registerTableGroup( pluralPartPath.getNavigablePath(), tableGroup );
registerPluralTableGroupParts( tableGroup );