diff --git a/documentation/src/main/asciidoc/core/manual/en_US/cte.adoc b/documentation/src/main/asciidoc/core/manual/en_US/cte.adoc index 45e7e4ea47..efe5a92860 100644 --- a/documentation/src/main/asciidoc/core/manual/en_US/cte.adoc +++ b/documentation/src/main/asciidoc/core/manual/en_US/cte.adoc @@ -121,7 +121,7 @@ CriteriaBuilder cb = cbf.create(em, CatCte.class) .from(CatCte.class, "parentCat") #<2> .bind("id").select("cat.id") .bind("ancestor").select("cat.ancestor") - .where("id").eqExpression("parentCat.ancestor.id") #<3> + .where("cat.id").eqExpression("parentCat.ancestor.id") #<3> .end(); ---- <1> We start with the non-recursive query and just bind the cat attributes of the desired cat diff --git a/documentation/src/main/asciidoc/core/manual/en_US/querydsl.adoc b/documentation/src/main/asciidoc/core/manual/en_US/querydsl.adoc index a1e8e281cb..5e1186110a 100644 --- a/documentation/src/main/asciidoc/core/manual/en_US/querydsl.adoc +++ b/documentation/src/main/asciidoc/core/manual/en_US/querydsl.adoc @@ -252,7 +252,7 @@ List result = new BlazeJPAQuery(entityManager, criteriaBuilderFa .where(QCat.cat.id.eq(someCatId)), new BlazeJPAQuery() .from(QCat.cat) - .from(QCatCte.catCte, parentCat) + .from(parentCat) .bind(QCatCte.catCte.id, QCat.cat.id) .bind(QCatCte.catCte.ancestor, QCat.cat.ancestor) .where(QCat.cat.id.eq(parentCat.ancestor.id)))