diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedEntityJoin.java b/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedEntityJoin.java index 9f3ecaa820..033f37f183 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedEntityJoin.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedEntityJoin.java @@ -68,6 +68,11 @@ public class SqmCorrelatedEntityJoin extends SqmEntityJoin implements SqmC return path; } + @Override + public SqmRoot findRoot() { + return getCorrelatedRoot(); + } + @Override public X accept(SemanticQueryWalker walker) { return walker.visitCorrelatedEntityJoin(this);