@GetMapping("/api/v3.1/orders") public List ordersV3.1() { // ORDER 2개 // N + 1 -> 1 + 회원 N + 배송 N List orders = orderRepository.findAllByString(new OrderSearch()); List result = orders.stream() .map(o -> new OrderDto(o)) .collect(Collectors.toList()); return result; } @Data static class OrderDto { private Long orderId; private String name; private LocalDateTime orderDate; private OrderStatus or..