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 |
Tags
- producer
- PAGING
- consumer
- bean
- Entity
- transactionaleventlistener
- spring
- cd
- offsetdatetime
- centos7
- QueryDSL
- JPA
- AWS
- mysql
- kafka
- Spring Data JPA
- API
- spring kafka
- CI
- Kotlin
- git
- Streams
- ECS
- mirror maker2
- K8s
- entity graph
- CodePipeline
- topic생성
- Spring JPA
- Kubernetes
Archives
- Today
- Total
목록Collection (1)
Yebali

Collection조회란 Entity에서 일대다 관계(@OneToMany)를 조회하는 것이다. fetch join을 사용한 컬렉션 조회 Controller @GetMapping("/api/v3/orders") public List ordersV3() { List orders = orderRepository.findAllWithItem(); List result = orders.stream() .map(o -> new OrderDto(o)) .collect(toList()); return result; } Repository public List findAllWithItem() { return em.createQuery( "select distinct o from Order o" + " join fetch..
Spring
2021. 10. 11. 20:35