Skip to content

Commit d8c43ef

Browse files
Luladjievmp911de
authored andcommitted
Fix typo in Query Methods documentation.
Closes #1064
1 parent 63568aa commit d8c43ef

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
@@ -489,7 +489,7 @@ interface PersonRepository extends PagingAndSortingRepository<Person, String> {
489489
List<Person> findByLastname(String lastname); <7>
490490
}
491491
----
492-
<1> The method shows a query for all people with the given `lastname`.
492+
<1> The method shows a query for all people with the given `firstname`.
493493
The query is derived by parsing the method name for constraints that can be concatenated with `And` and `Or`.
494494
Thus, the method name results in a query expression of `SELECT … FROM person WHERE firstname = :firstname`.
495495
<2> Use `Pageable` to pass offset and sorting parameters to the database.
@@ -498,7 +498,7 @@ Thus, the method name results in a query expression of `SELECT … FROM person W
498498
<5> Find a single entity for the given criteria.
499499
It completes with `IncorrectResultSizeDataAccessException` on non-unique results.
500500
<6> In contrast to <3>, the first entity is always emitted even if the query yields more result documents.
501-
<7> The `findByLastname` method shows a query for all people with the given last name.
501+
<7> The `findByLastname` method shows a query for all people with the given `lastname`.
502502
====
503503

504504
The following table shows the keywords that are supported for query methods:

0 commit comments

Comments
 (0)