Skip to content

Commit

Permalink
feat: 글 검색 조회 구현#3
Browse files Browse the repository at this point in the history
  • Loading branch information
firefox1234123 committed Aug 5, 2024
1 parent ef4e871 commit 75e639b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public interface PostRepository extends JpaRepository<Post, Long> {
@Query("select distinct p from Post p join fetch p.moods m where m.moodId = :moodId ")
List<Post> findByMoodId(Long moodId);

@Query("select distinct p from Post p where p.title like :input or p.content like :input")
@Query("select distinct p from Post p where p.title like :input or p.content like :input ")
List<Post> findByInput(String input);
}

0 comments on commit 75e639b

Please sign in to comment.