|
|
|
@ -340,10 +340,10 @@ public class MongoUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static <T> List<T> find(Class<T> cls, Sort sort, Criteria... criterias) {
|
|
|
|
public static <T> List<T> find(Class<T> cls, Sort sort, Criteria... criterias) {
|
|
|
|
Query query = new Query(criteria(and(criterias)));
|
|
|
|
Query query = new Query(and(criterias));
|
|
|
|
query.with(sort);
|
|
|
|
query.with(sort);
|
|
|
|
query.allowDiskUse(true);
|
|
|
|
query.allowDiskUse(true);
|
|
|
|
return find(cls, new Query());
|
|
|
|
return find(cls, query);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static boolean findExists(Query query, Class<?> entityClass) {
|
|
|
|
public static boolean findExists(Query query, Class<?> entityClass) {
|
|
|
|
|