Permalink
Browse files

Adapt method renaming of getFirstItem() to getOffset() in Pageable.

  • Loading branch information...
1 parent 608cbfe commit 916f4feb7539b27670366477d87a87eca76b5349 @olivergierke olivergierke committed Dec 29, 2010
@@ -150,7 +150,7 @@ private Query bindAndPrepare(Query query, Parameters parameters) {
return result;
}
- result.setFirstResult(getPageable().getFirstItem());
+ result.setFirstResult(getPageable().getOffset());
result.setMaxResults(getPageable().getPageSize());
return result;
@@ -360,7 +360,7 @@ public void flush() {
private Page<T> readPage(final TypedQuery<T> query,
final Pageable pageable, final Specification<T> spec) {
- query.setFirstResult(pageable.getFirstItem());
+ query.setFirstResult(pageable.getOffset());
query.setMaxResults(pageable.getPageSize());
Long total = getCountQuery(spec).getSingleResult();

0 comments on commit 916f4fe

Please sign in to comment.