Skip to content

Commit

Permalink
fix: Minor errors in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
guofengzh authored and beikov committed Oct 29, 2024
1 parent 0bb921b commit 1442124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion documentation/src/main/asciidoc/core/manual/en_US/cte.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ CriteriaBuilder<CatCte> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ List<CatCte> result = new BlazeJPAQuery<CatCte>(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)))
Expand Down

0 comments on commit 1442124

Please sign in to comment.