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, this,
creationContext creationContext
); );
final FilterPredicate filterPredicate = FilterHelper.createFilterPredicate(
getLoadQueryInfluencers(), pluralAttributeMapping.applyBaseRestrictions(
(Joinable) pluralAttributeMapping.getCollectionDescriptor(), subQuerySpec::applyPredicate,
tableGroup tableGroup,
true,
getLoadQueryInfluencers().getEnabledFilters(),
null,
this
); );
if ( filterPredicate != null ) {
subQuerySpec.applyPredicate( filterPredicate );
}
getFromClauseAccess().registerTableGroup( pluralPartPath.getNavigablePath(), tableGroup ); getFromClauseAccess().registerTableGroup( pluralPartPath.getNavigablePath(), tableGroup );
registerPluralTableGroupParts( tableGroup ); registerPluralTableGroupParts( tableGroup );