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
- centos7
- Spring JPA
- ECS
- Streams
- topic생성
- Kubernetes
- JPA
- Spring Data JPA
- spring
- PAGING
- mysql
- transactionaleventlistener
- offsetdatetime
- producer
- spring kafka
- cd
- kafka
- K8s
- pgvector
- entity graph
- AWS
- API
- CodePipeline
- Entity
- git
- CI
- bean
- QueryDSL
- consumer
- Kotlin
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