Skip to content

Commit

Permalink
HHH-16888 Return correlated root in findRoot() for entity joins
Browse files Browse the repository at this point in the history
  • Loading branch information
mbladel committed Aug 1, 2023
1 parent 7e7d696 commit 91df5f1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ public SqmCorrelatedEntityJoin<T> copy(SqmCopyContext context) {
return path;
}

@Override
public SqmRoot<?> findRoot() {
return getCorrelatedRoot();
}

@Override
public <X> X accept(SemanticQueryWalker<X> walker) {
return walker.visitCorrelatedEntityJoin(this);
Expand Down

0 comments on commit 91df5f1

Please sign in to comment.