HHH-16837 Avoid passing domain path's NP when resolving table reference
This commit is contained in:
parent
26eaa5a6df
commit
97be9b31cf
|
@ -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 {
|
|||
SortDirection 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,
|
||||
|
|
Loading…
Reference in New Issue