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
- Greedy
- 자바
- Proxy
- jpa
- JPQL
- 인프런
- pointcut
- 김영한
- 그리디
- db
- QueryDSL
- 백준
- springdatajpa
- Exception
- Android
- java
- 스프링 핵심 기능
- kotlin
- 스프링 핵심 원리
- JDBC
- Servlet
- transaction
- Spring Boot
- 스프링
- 알고리즘
- spring
- SpringBoot
- Thymeleaf
- AOP
- http
Archives
- Today
- Total
목록CASE문 (1)
개발자되기 프로젝트
Case 문
1. Case문 select, 조건절(where), order by에서 사용 가능 2. 예제 간단한 경우 @Test public void basicCase(){ List result = queryFactory .select(member.age .when(10).then("열살") .when(20).then("스무살") .otherwise("기타")) .from(member) .fetch(); for (String s : result) { System.out.println("s = " + s); } } s = 열살 s = 스무살 s = 기타 s = 기타 복잡한 경우 caseBuilder 생성 필요. @Test public void complexCase(){ List result = queryFactory ..
인프런/[인프런] QueryDsl
2021. 9. 2. 23:59