From 1bb833798a5dd6c8ef47ffe925e019869382476c Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 9 Oct 2012 08:36:56 +0200 Subject: [PATCH] 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. --- .../java/org/springframework/data/jpa/repository/Query.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/jpa/repository/Query.java b/src/main/java/org/springframework/data/jpa/repository/Query.java index d2789a011..cfa79c9f3 100644 --- a/src/main/java/org/springframework/data/jpa/repository/Query.java +++ b/src/main/java/org/springframework/data/jpa/repository/Query.java @@ -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 "";