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 | 29 | 30 | 31 |
Tags
- SpringBoot
- AOP
- java
- JDBC
- transaction
- db
- spring
- 스프링
- Exception
- 알고리즘
- 김영한
- 백준
- 인프런
- QueryDSL
- Servlet
- 스프링 핵심 원리
- Greedy
- Android
- 스프링 핵심 기능
- http
- JPQL
- springdatajpa
- jpa
- 자바
- Thymeleaf
- pointcut
- Spring Boot
- 그리디
- Proxy
- kotlin
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