DATAJPA-261 - Clarify usage of countQuery attribute in @Query.
Clarified that we derive the count query from the method name if no manual query is defined or from the manually defined query if defined.
This commit is contained in:
@@ -38,7 +38,8 @@ public @interface Query {
|
||||
|
||||
/**
|
||||
* Defines a special count query that shall be used for pagination queries to lookup the total number of elements for
|
||||
* a page. If non is configured we will derive the count query from the method name.
|
||||
* a page. If non is configured we will derive the count query from the query defined in {@link #value()} or the
|
||||
* method name if {@link #value()} is not configured.
|
||||
*/
|
||||
String countQuery() default "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user