We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Query(value = "select distinct new com.woowacourse.naepyeon.service.dto.WrittenMessageResponseDto" + "(m.id, r.id, r.title, t.id, t.name, m.content, m.color, " + "case when r.recipient = com.woowacourse.naepyeon.domain.rollingpaper.Recipient.MEMBER then p.nickname " + "when r.recipient = com.woowacourse.naepyeon.domain.rollingpaper.Recipient.TEAM then t.name " + "else '' end) " + "from Message m" + ", Rollingpaper r" + ", Team t" + ", TeamParticipation p " + "where m.rollingpaper.id = r.id " + "and r.team.id = t.id " + "and p.team.id = t.id " + "and m.author.id = :authorId " + "and (p.member.id = r.member.id or r.member.id is null)") Page<WrittenMessageResponseDto> findAllByAuthorId(@Param("authorId") final Long authorId, final Pageable pageRequest);
queryDSL을 적용(#421) 한 후에 위 쿼리를 리팩터링해보자
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
기능 상세
queryDSL을 적용(#421) 한 후에 위 쿼리를 리팩터링해보자
The text was updated successfully, but these errors were encountered: