Skip to content

Commit 101b3c8

Browse files
Luladjievmp911de
authored andcommitted
Fix typo in Query Methods documentation.
Closes #1064
1 parent c372eb8 commit 101b3c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/asciidoc/jdbc.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ interface PersonRepository extends PagingAndSortingRepository<Person, String> {
470470
Stream<Person> streamByLastname(String lastname); <8>
471471
}
472472
----
473-
<1> The method shows a query for all people with the given `lastname`.
473+
<1> The method shows a query for all people with the given `firstname`.
474474
The query is derived by parsing the method name for constraints that can be concatenated with `And` and `Or`.
475475
Thus, the method name results in a query expression of `SELECT … FROM person WHERE firstname = :firstname`.
476476
<2> Use `Pageable` to pass offset and sorting parameters to the database.
@@ -479,7 +479,7 @@ Thus, the method name results in a query expression of `SELECT … FROM person W
479479
<5> Find a single entity for the given criteria.
480480
It completes with `IncorrectResultSizeDataAccessException` on non-unique results.
481481
<6> In contrast to <3>, the first entity is always emitted even if the query yields more result documents.
482-
<7> The `findByLastname` method shows a query for all people with the given last name.
482+
<7> The `findByLastname` method shows a query for all people with the given `lastname`.
483483
<8> The `streamByLastname` method returns a `Stream`, which makes values possible as soon as they are returned from the database.
484484
====
485485

0 commit comments

Comments
 (0)