import org.springframework.data.querydsl.QPageRequest; class QueryDslPaging { Object first() { return new QPageRequest(0, 20); } }