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:
Oliver Gierke
2012-10-09 08:36:56 +02:00
parent b0efce1b2c
commit 1bb833798a

View File

@@ -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 "";