Browse Source

Fix typo in Query Methods documentation.

Closes #1064
2.2.x
Peter Luladjiev 4 years ago committed by Mark Paluch
parent
commit
d8c43ef6c6
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1
  1. 4
      src/main/asciidoc/jdbc.adoc

4
src/main/asciidoc/jdbc.adoc

@ -489,7 +489,7 @@ interface PersonRepository extends PagingAndSortingRepository<Person, String> { @@ -489,7 +489,7 @@ interface PersonRepository extends PagingAndSortingRepository<Person, String> {
List<Person> findByLastname(String lastname); <7>
}
----
<1> The method shows a query for all people with the given `lastname`.
<1> The method shows a query for all people with the given `firstname`.
The query is derived by parsing the method name for constraints that can be concatenated with `And` and `Or`.
Thus, the method name results in a query expression of `SELECT … FROM person WHERE firstname = :firstname`.
<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 @@ -498,7 +498,7 @@ Thus, the method name results in a query expression of `SELECT … FROM person W
<5> Find a single entity for the given criteria.
It completes with `IncorrectResultSizeDataAccessException` on non-unique results.
<6> In contrast to <3>, the first entity is always emitted even if the query yields more result documents.
<7> The `findByLastname` method shows a query for all people with the given last name.
<7> The `findByLastname` method shows a query for all people with the given `lastname`.
====
The following table shows the keywords that are supported for query methods:

Loading…
Cancel
Save