diff --git a/pom.xml b/pom.xml index e7960e41..2a26b723 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.kiwiproject kiwi-parent - 3.0.0 + 3.0.1 kiwi diff --git a/src/main/java/org/kiwiproject/spring/data/PagingQuery.java b/src/main/java/org/kiwiproject/spring/data/PagingQuery.java index 897d0cf9..d76cd828 100644 --- a/src/main/java/org/kiwiproject/spring/data/PagingQuery.java +++ b/src/main/java/org/kiwiproject/spring/data/PagingQuery.java @@ -94,7 +94,7 @@ public Page findPage(Class clazz) { /** * Aggregates a page of results for the given type of object, which is assumed to be mapped to a MongoDB * collection. Please make sure to read the caveats and possible problems sections below. - *

Caveats and Possible Problems

+ *

Caveats and Possible Problems

* Not all types of {@link AggregationOperation} will actually work here, which is why it is marked as beta. * For example, using an {@link Aggregation#project(String...)} will fail because the internal implementation is * assuming the "shape" of the result is an {@link AggregateResult} with the given type {@code T} and it performs @@ -104,7 +104,7 @@ public Page findPage(Class clazz) { * Note also that a sort must be specified in the {@link Pageable} given to {@link #with(Pageable)}. Otherwise, * an {@link org.springframework.data.mongodb.UncategorizedMongoDbException UncategorizedMongoDbException} will be * thrown with the error: "{@code $sort stage must have at least one sort key}". - *

Recommendations for New Code

+ *

Recommendations for New Code

* Based on the above restrictions and potential usage problems, we strongly recommend avoiding this * method for new code, as its original purpose was very limited in scope, mainly to perform lookup (join) * operations in order to return an "aggregate" page that contained model objects as well as their associated