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
- 그리디
- Spring Boot
- 스프링
- JDBC
- JPQL
- 알고리즘
- jpa
- SpringBoot
- http
- Proxy
- 인프런
- 스프링 핵심 원리
- Exception
- 스프링 핵심 기능
- transaction
- AOP
- 백준
- springdatajpa
- java
- spring
- Servlet
- QueryDSL
- Thymeleaf
- pointcut
- kotlin
- Greedy
- db
- 김영한
- Android
- 자바
Archives
- Today
- Total
목록쿼리 메서드 (1)
개발자되기 프로젝트
쿼리 메서드
1. Query Method의 기능 메소드 이름으로 쿼리 생성 NamedQuery @Query - 리파지토리 메소드에 쿼리 정의 파라미터 바인딩 반환 타입 페이징과 정렬 벌크성 수정 쿼리 @EntityGraph 2. 메소드 이름으로 쿼리 생성 메소드 이름을 분석해서 JPQL 쿼리 실행 이름과 나이를 기준으로 회원을 조회하려면? 먼저 JPA로 짜보자 public List findMemberByUserNameAndAgeGreaterThan(String userName, int age){ return em.createQuery("select m from Member m where m.userName = :userName and m.age > :age") .setParameter("userName", userN..
인프런/[인프런] Spring Data JPA
2021. 8. 28. 11:42