Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- SVN
- ibatis
- CEP
- spring security
- custom filter
- zabbix
- Spring MVC
- @SqlResultSetMapping
- java tip
- spring jpa
- maven
- gwt
- drools
- jstl
- querydsl
- gwt-ext
- spring transaction
- guvnor
- MySQL
- JPA
- jenkins
- COC
- jquery
- localdatetime
- Drools Fusion
- JBoss Seam
- rember me
- GEventEvaluator
- Hudson
- Spring
Archives
- Today
- Total
봉 블로그
[JPA] Spring + Querydsl Paging 본문
반응형
Querydsl 3.6.7
public class BoardRepositoryImpl extends QueryDslRepositorySupport implements BoardRepositoryCustom {
public BoardRepositoryImpl() {
super(Board.class); //Domain Class
}
......
JPQLQuery query = from(qBoard).where(predicate);
Long totalCount = query.count();
List<Board> list = getQuerydsl().applyPagination(pageable, query).list(qBoard);
return new PageImpl(list, pageable, totalCount);