HHH-16837 Avoid passing domain path's NP when resolving table reference
This commit is contained in:
parent
9bb05881de
commit
7bc399db1c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue