Skip to content

Commit 021dde0

Browse files
committed
Update documentation.
1 parent e22d403 commit 021dde0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ var queryBuilder = QueryBuilder.select(Pet.class)
855855

856856
The `Table` annotation associates an entity type with a database table. Similarly, the `Column` annotation associates a property with a column in the table. Both are used to create the "select" statement in the preceding example. The `PrimaryKey` and `ForeignKey` annotations represent relationships between entity types and are used to construct the "where" clause. The `Index` annotation indicates that a property is part of the default sort order for an entity and is used to construct the "order by" clause.
857857

858-
This code creates a query that selects all actors appearing in a particular film, identified by the "filmID" parameter:
858+
This code creates a query that selects all actors appearing in a particular film, identified by the "filmID" parameter. Primary and foreign key annotations associated with the [`Actor`](kilo-test/src/main/java/org/httprpc/kilo/test/Actor.java), [`Film`](kilo-test/src/main/java/org/httprpc/kilo/test/Film.java), and [`FilmActor`](kilo-test/src/main/java/org/httprpc/kilo/test/FilmActor.java) types are used to construct the "join" clause:
859859

860860
```java
861861
var queryBuilder = QueryBuilder.select(Actor.class)
@@ -864,7 +864,7 @@ var queryBuilder = QueryBuilder.select(Actor.class)
864864
.ordered(true);
865865
```
866866

867-
Primary and foreign key annotations associated with the [`Actor`](kilo-test/src/main/java/org/httprpc/kilo/test/Actor.java), [`Film`](kilo-test/src/main/java/org/httprpc/kilo/test/Film.java), and [`FilmActor`](kilo-test/src/main/java/org/httprpc/kilo/test/FilmActor.java) types are used to construct the "join" clause. The resulting query is functionally equivalent to the following SQL:
867+
The resulting query is functionally equivalent to the following SQL:
868868

869869
```sql
870870
select actor.* from actor

kilo-client/src/main/java/org/httprpc/kilo/sql/QueryBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@ private static Function<Object, Object> getReadTransform(Method accessor) {
427427
* type.
428428
*
429429
* @param parentType
430-
* The type representing the table to join and the table that defines the
431-
* primary key.
430+
* The type representing both the table to join and the table that defines
431+
* the primary key.
432432
*
433433
* @return
434434
* The {@link QueryBuilder} instance.

0 commit comments

Comments
 (0)