Skip to content

Commit

Permalink
feat : 예약 조회 시 회원정보까지 페치조인
Browse files Browse the repository at this point in the history
dlswns2480 committed Jan 17, 2024
1 parent c2d194a commit 09efc17
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ public interface ReservationRepository extends JpaRepository<Reservation, Long>
List<Reservation> findAllWithReservationTimeAndShopByMemberId(@Param("member") Member member);

@Query("select r from Reservation r "
+ "join fetch r.member m "
+ "join fetch r.reservationTime rt "
+ "join fetch rt.shop "
+ "where r.id = :reservationId")

0 comments on commit 09efc17

Please sign in to comment.