HHH-16888 Return correlated root in findRoot() for entity joins

This commit is contained in:
Marco Belladelli 2023-07-07 12:36:13 +02:00
parent 7e7d69679d
commit 91df5f130d
1 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,11 @@ public class SqmCorrelatedEntityJoin<T> extends SqmEntityJoin<T> implements SqmC
return path;
}
@Override
public SqmRoot<?> findRoot() {
return getCorrelatedRoot();
}
@Override
public <X> X accept(SemanticQueryWalker<X> walker) {
return walker.visitCorrelatedEntityJoin(this);