From 75e639b37e45ed30c49cba2978fee84a7570834e Mon Sep 17 00:00:00 2001 From: firefox1234123 Date: Mon, 5 Aug 2024 20:11:19 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B8=80=20=EA=B2=80=EC=83=89=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EA=B5=AC=ED=98=84#3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../post/domain/repository/PostRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/skhu/likelion12thteam03be/post/domain/repository/PostRepository.java b/src/main/java/net/skhu/likelion12thteam03be/post/domain/repository/PostRepository.java index 5fc93e0..4106c52 100644 --- a/src/main/java/net/skhu/likelion12thteam03be/post/domain/repository/PostRepository.java +++ b/src/main/java/net/skhu/likelion12thteam03be/post/domain/repository/PostRepository.java @@ -13,6 +13,6 @@ public interface PostRepository extends JpaRepository { @Query("select distinct p from Post p join fetch p.moods m where m.moodId = :moodId ") List 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 findByInput(String input); }