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