Skip to content

Commit

Permalink
fix (#3) : 댓글 조회시 파라미터 바인딩 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
daehwan2yo committed Apr 11, 2022
1 parent ba4968f commit 10eeaa1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public interface CommentRepository extends JpaRepository<Comment, Long> {

@Query("select c from Comment c where c.dailyPlan.calendar.account=:accountId and c.dailyPlan.date=:date")
List<Comment> findCommentByAccountIdAndDate(@Param("accountId") long accountId, @Param("date")LocalDate localDate);
@Query("select c from Comment c where c.dailyPlan.calendar.account.id=:accountId and c.dailyPlan.date=:date")
List<Comment> findCommentByAccountIdAndDate(Long accountId, LocalDate date);
}

0 comments on commit 10eeaa1

Please sign in to comment.