Skip to content

Commit 36fbf31

Browse files
authored
Update java/working-with-cql/query-api.md
1 parent 3cfdad1 commit 36fbf31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/working-with-cql/query-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ Given that there is simple reference pointing to the book created as follows.
13961396

13971397
```java
13981398
// {"ref":[{"id":"sap.capire.bookshop.Books","where":[{"ref":["ID"]},"=",{"val":"..."}]}]}
1399-
CqnStructuredTypeRef ref = CQL.entity(Books_.class).filter(b -> b.ID().eq("...")).asRef(); [!code focus]
1399+
CqnStructuredTypeRef ref = CQL.entity(Books_.class).filter(b -> b.ID().eq("...")).asRef(); // [!code focus]
14001400
```
14011401

14021402
To navigate to author of the book, use `CQL.entity(...)` to make it typed again and add one more segment to it. Note, that this does not check that original reference is indeed the reference to the book, this only lets you use required model interface.

0 commit comments

Comments
 (0)