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
- 그리디
- QueryDSL
- Thymeleaf
- 인프런
- Proxy
- 스프링
- Android
- SpringBoot
- 알고리즘
- transaction
- pointcut
- 스프링 핵심 기능
- db
- Exception
- JDBC
- java
- kotlin
- AOP
- spring
- 김영한
- jpa
- Spring Boot
- 백준
- JPQL
- springdatajpa
- Servlet
- http
- Greedy
- 자바
- 스프링 핵심 원리
Archives
- Today
- Total
목록tuple (1)
개발자되기 프로젝트
프로젝션과 결과 반환
1. 프로젝션 : select의 대상을 지정. 2. 프로젝션 대상이 하나 인 경우 프로젝션 대상이 하나면 타입을 명확하게 지정할 수 있음 프로젝션 대상이 둘 이상이면 튜플이나 DTO로 조회 List result = queryFactory .select(member.username) .from(member) .fetch(); 2. 튜플 조회 프로젝션 대상이 둘 이상일 때 사용 com.querydsl.core.Tuple tuple.get(~)을 통해 데이터 꺼냄. tuple을 repository 계층 내부에서만 사용하고, 외부에는 DTO로 변환하여 내보내자 ㅋㅋ @Test public void tupleProjection(){ List result = queryFactory .select(member.use..
인프런/[인프런] QueryDsl
2021. 9. 3. 20:18