Skip to content

Commit

Permalink
[Refactor] 책 id로 상세정보 불러와지지 않는 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seonghooni committed Nov 12, 2024
1 parent d7390e5 commit 14fb572
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public interface BookRepository extends JpaRepository<Book, Long>, BookRepositor


@EntityGraph(attributePaths = {"middleCategory"})
@Query("select b from Book b join fetch b.bookKeywords bk join fetch bk.keywordItem ki where b.id = :id")
@Query("select b from Book b left join b.bookKeywords bk left join bk.keywordItem ki where b.id = :id")
Optional<Book> findBookWithKeywordByBookId(@Param("id") Long id);

/**
Expand Down

0 comments on commit 14fb572

Please sign in to comment.