Skip to content

Commit 8fbf2c3

Browse files
committed
Tiny improvement of examples.
Examples for limiting queries with and without a property argument are now better mixed. This makes it more clear that limiting and filtering by property are orthogonal concerns. Closes #3268 Original pull request #3269
1 parent 06c3610 commit 8fbf2c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/main/antora/modules/ROOT/pages/repositories/query-methods-details.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -537,11 +537,11 @@ List<User> findByLastname(Limit limit);
537537
538538
User findFirstByOrderByLastnameAsc();
539539
540-
User findTopByOrderByAgeDesc();
540+
User findTopByLastnameOrderByAgeDesc(String lastname);
541541
542542
Page<User> queryFirst10ByLastname(String lastname, Pageable pageable);
543543
544-
Slice<User> findTop3ByLastname(String lastname, Pageable pageable);
544+
Slice<User> findTop3By(Pageable pageable);
545545
546546
List<User> findFirst10ByLastname(String lastname, Sort sort);
547547

0 commit comments

Comments
 (0)