Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- jpa
- 인프런
- AOP
- QueryDSL
- Exception
- 백준
- JDBC
- 자바
- Thymeleaf
- Greedy
- 김영한
- kotlin
- transaction
- Spring Boot
- 알고리즘
- pointcut
- http
- 스프링
- SpringBoot
- 스프링 핵심 기능
- JPQL
- Servlet
- db
- Android
- Proxy
- spring
- java
- springdatajpa
- 스프링 핵심 원리
- 그리디
Archives
- Today
- Total
목록JPA Paging (1)
개발자되기 프로젝트
JPA의 페이징과 정렬
1. JPA 의 페이징 JPA에서 페이징 하는 방법 조건 검색 조건 : 나이 10살 정렬 조건 : 이름으로 내림차순 페이징 조건 : 첫 번째 페이지, 페이지 당 보여 줄 데이터는 3건 2. 예제 setFirstResult() : 몇 번 째 부터? setMaxResult() : 몇 개? public List findbyPage(int age, int offset, int limit){ return em.createQuery("select m from Member m where m.age = :age order by m.userName desc") .setParameter("age", age) .setFirstResult(offset) //몇 번째부터? .setMaxResults(limit) // 몇 개? ..
인프런/[인프런] Spring Data JPA
2021. 8. 29. 17:21