File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ interface PersonRepository extends PagingAndSortingRepository<Person, String> {
470
470
Stream<Person> streamByLastname(String lastname); <8>
471
471
}
472
472
----
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 `.
474
474
The query is derived by parsing the method name for constraints that can be concatenated with `And` and `Or`.
475
475
Thus, the method name results in a query expression of `SELECT … FROM person WHERE firstname = :firstname`.
476
476
<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
479
479
<5> Find a single entity for the given criteria.
480
480
It completes with `IncorrectResultSizeDataAccessException` on non-unique results.
481
481
<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` .
483
483
<8> The `streamByLastname` method returns a `Stream`, which makes values possible as soon as they are returned from the database.
484
484
====
485
485
You can’t perform that action at this time.
0 commit comments