You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current situation:
The examples with parameters inside brackets such as List<User> findByLastname(Limit limit); and the examples without parameters inside brackets such as User findFirstByOrderByLastnameAsc(); appear in the same box of examples.
Potential enhancement:
To be more obvious, it could be done like this:
I imagine a potential change could be: (There could be a better way, but this is what I can think of right now.)
Create two boxes of examples:
Box A:
Examples without parameters in brackets.
Box B:
Examples with parameters in brackets.
The text was updated successfully, but these errors were encountered:
That is kind of the opposite of what I intended. Instead of separating these categories out they should get better mixed, in order to make clear that filtering by property and limiting by method name or special argument are orthogonal concerns.
I'll move this to commons, where the documentation we are talking about resides and will provide a PR.
schauder
transferred this issue from spring-projects/spring-data-jpa
Apr 15, 2025
Examples for limitin 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
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
The documentation of Limiting Query Results can be enhanced with the clarification and comment from schauder.
Current situation:
The examples with parameters inside brackets such as
List<User> findByLastname(Limit limit);
and the examples without parameters inside brackets such asUser findFirstByOrderByLastnameAsc();
appear in the same box of examples.Potential enhancement:
To be more obvious, it could be done like this:
I imagine a potential change could be: (There could be a better way, but this is what I can think of right now.)
Create two boxes of examples:
Box A:
Examples without parameters in brackets.
Box B:
Examples with parameters in brackets.
The text was updated successfully, but these errors were encountered: