DATAMONGO-1085 - Fixed sorting with Querydsl in QueryDslMongoRepository.
We now translate QSort's OrderSpecifiers into appropriate sort criteria.
Previously the OrderSpecifiers were not correctly translated to appropriate property path expressions.
We're now overriding support for findAll(Pageable) and findAll(Sort) to QueryDslMongoRepository to apply special QSort handling.
Original pull request: #236.
pull/257/head
Thomas Darimont11 years agocommitted byOliver Gierke
@ -105,7 +107,6 @@ public class QueryDslMongoRepository<T, ID extends Serializable> extends SimpleM
@@ -105,7 +107,6 @@ public class QueryDslMongoRepository<T, ID extends Serializable> extends SimpleM
@ -115,7 +116,7 @@ public class QueryDslMongoRepository<T, ID extends Serializable> extends SimpleM
@@ -115,7 +116,7 @@ public class QueryDslMongoRepository<T, ID extends Serializable> extends SimpleM
@ -130,6 +131,28 @@ public class QueryDslMongoRepository<T, ID extends Serializable> extends SimpleM
@@ -130,6 +131,28 @@ public class QueryDslMongoRepository<T, ID extends Serializable> extends SimpleM
@ -144,12 +167,17 @@ public class QueryDslMongoRepository<T, ID extends Serializable> extends SimpleM
@@ -144,12 +167,17 @@ public class QueryDslMongoRepository<T, ID extends Serializable> extends SimpleM
@ -182,6 +210,15 @@ public class QueryDslMongoRepository<T, ID extends Serializable> extends SimpleM
@@ -182,6 +210,15 @@ public class QueryDslMongoRepository<T, ID extends Serializable> extends SimpleM
returnquery;
}
// TODO: find better solution than instanceof check
@ -1071,4 +1073,79 @@ public abstract class AbstractPersonRepositoryIntegrationTests {
@@ -1071,4 +1073,79 @@ public abstract class AbstractPersonRepositoryIntegrationTests {