Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: 2.0-RC2
-
Component/s: Persistence
-
Labels:None
Description
As far as I know only when using criteria Grails will return a PagedResultList.
It would be really nice if all list* methods would do this in case max and/or offset params are specified.
E.g. how it is currently
def result = Book.createCriteria().list(max: params.max, offset: params.offset) {}
assert result instanceof PagedResultList => TRUE
def result = Book.list(max: 10, offset: 0)
assert result instanceof PagedResultList => FALSE
Issue Links
- relates to
-
GRAILS-8206
totalCount is broken
-
-
GRAILS-7945
Named Query results should be of type PagedResultList in order to support Pagination
-
- Trackbacks
-
Articles
Discover a selection of related articles on Pearltrees
Same for the findAll* methods