HHH-16837 Avoid passing domain path's NP when resolving table reference

This commit is contained in:
Marco Belladelli 2023-07-03 11:58:30 +02:00
parent 9bb05881de
commit 7bc399db1c
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ public abstract class AbstractDomainPath implements DomainPath {
if ( referenceModelPart instanceof BasicValuedModelPart ) {
final BasicValuedModelPart selection = (BasicValuedModelPart) referenceModelPart;
final TableReference tableReference = tableGroup.resolveTableReference(
getNavigablePath(),
null,
selection,
selection.getContainingTableExpression()
);
@ -252,7 +252,7 @@ public abstract class AbstractDomainPath implements DomainPath {
SortOrder sortOrder,
NullPrecedence nullPrecedence,
SqlAstCreationState creationState) {
final TableReference tableReference = tableGroup.resolveTableReference( getNavigablePath(), selection.getContainingTableExpression() );
final TableReference tableReference = tableGroup.resolveTableReference( null, selection.getContainingTableExpression() );
final Expression expression = creationState.getSqlExpressionResolver().resolveSqlExpression(
createColumnReferenceKey(
tableReference,