38
38
import org .springframework .data .mapping .model .EntityInstantiators ;
39
39
import org .springframework .data .projection .ProjectionFactory ;
40
40
import org .springframework .data .projection .ProjectionInformation ;
41
+ import org .springframework .data .querydsl .ListQuerydslPredicateExecutor ;
41
42
import org .springframework .data .querydsl .QuerydslPredicateExecutor ;
42
43
import org .springframework .data .repository .core .EntityInformation ;
43
44
import org .springframework .data .repository .query .FluentQuery ;
56
57
* @author Mark Paluch
57
58
* @since 2.6
58
59
*/
59
- public class QuerydslLdapPredicateExecutor <T > implements QuerydslPredicateExecutor <T > {
60
+ public class QuerydslLdapPredicateExecutor <T > implements ListQuerydslPredicateExecutor <T > {
60
61
61
62
private final EntityInformation <T , ?> entityInformation ;
62
63
private final ProjectionFactory projectionFactory ;
@@ -129,7 +130,7 @@ public boolean exists(Predicate predicate) {
129
130
return findBy (predicate , FluentQuery .FetchableFluentQuery ::exists );
130
131
}
131
132
132
- public Iterable <T > findAll (Predicate predicate , Sort sort ) {
133
+ public List <T > findAll (Predicate predicate , Sort sort ) {
133
134
134
135
Assert .notNull (sort , "Pageable must not be null!" );
135
136
@@ -140,7 +141,7 @@ public Iterable<T> findAll(Predicate predicate, Sort sort) {
140
141
throw new UnsupportedOperationException ("Sorting is not supported" );
141
142
}
142
143
143
- public Iterable <T > findAll (OrderSpecifier <?>... orders ) {
144
+ public List <T > findAll (OrderSpecifier <?>... orders ) {
144
145
145
146
if (orders .length == 0 ) {
146
147
return findAll ();
@@ -150,7 +151,7 @@ public Iterable<T> findAll(OrderSpecifier<?>... orders) {
150
151
}
151
152
152
153
@ Override
153
- public Iterable <T > findAll (Predicate predicate , OrderSpecifier <?>... orders ) {
154
+ public List <T > findAll (Predicate predicate , OrderSpecifier <?>... orders ) {
154
155
155
156
if (orders .length == 0 ) {
156
157
return findAll (predicate );
0 commit comments