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
- Proxy
- Android
- 알고리즘
- 자바
- 백준
- Thymeleaf
- JDBC
- 스프링
- Spring Boot
- transaction
- kotlin
- 김영한
- Greedy
- 스프링 핵심 기능
- 그리디
- JPQL
- SpringBoot
- db
- 인프런
- Exception
- Servlet
- java
- http
- QueryDSL
- AOP
- jpa
- pointcut
- springdatajpa
- spring
- 스프링 핵심 원리
Archives
- Today
- Total
목록BooleanExpressions (1)
개발자되기 프로젝트
동적쿼리 : BooleanBuilder, Where 다중 파라미터
1. 동적쿼리 두 가지 방법 BooleanBuilder Where 다중 파라미터 사용 2. BooleanBuilder booleanBuilder에 and, or 조건 추가 가능. private List searchMember1(String usernameCon, Integer ageCon) { BooleanBuilder builder = new BooleanBuilder(); if(usernameCon != null){ builder.and(member.username.eq(usernameCon)); //booleanbuild에 and조건 추가 } if(ageCon!=null){ builder.and(member.age.eq(ageCon)); } return queryFactory .selectFrom(..
인프런/[인프런] QueryDsl
2021. 9. 3. 22:59