DATAJPA-1632 - Update countQuery documentation.

It now reflects the behavior it has since version 1.6.

Original pull request: #399
This commit is contained in:
tinhcao
2019-11-13 23:02:10 +07:00
committed by Jens Schauder
parent b59ca531f5
commit 762ae90106

View File

@@ -45,13 +45,13 @@ 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 original query or {@link #countProjection()} query if any.
*/
String countQuery() default "";
/**
* Defines the projection part of the count query that is generated for pagination. If neither {@link #countQuery()}
* not {@link #countProjection()} is configured we will derive the count query from the method name.
* not {@link #countProjection()} is configured we will derive the count query from the original query.
*
* @return
* @since 1.6