Skip to content

Commit

Permalink
Merge pull request #152 from kookmin-sw/refactor/be/#151-dto-fetch-join
Browse files Browse the repository at this point in the history
refactor: #151-DTO 기반 Fetch Join 문제 해결
  • Loading branch information
mclub4 authored May 5, 2024
2 parents 9c8bb80 + ce9a63e commit 67d645f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public List<String> findByFAQId(Long faqId) {
List<String> urlList = jpaQueryFactory
.select(faqImage.url)
.from(faqImage)
.leftJoin(faqImage.faqId, faq)
.fetchJoin()
.innerJoin(faqImage.faqId, faq)
.where(faqImage.faqId.id.eq(faqId))
.distinct()
.fetch();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public List<String> findByQuestionId(Long questionId) {
List<String> urlList = jpaQueryFactory
.select(questionImage.url)
.from(questionImage)
.leftJoin(questionImage.questionId, question)
.fetchJoin()
.innerJoin(questionImage.questionId, question)
.where(questionImage.questionId.id.eq(questionId))
.distinct()
.fetch();
Expand Down

0 comments on commit 67d645f

Please sign in to comment.