diff --git a/src/main/java/com/beotkkot/qtudy/repository/posts/PostsRepository.java b/src/main/java/com/beotkkot/qtudy/repository/posts/PostsRepository.java index 4ba46bd..ab3a0d9 100644 --- a/src/main/java/com/beotkkot/qtudy/repository/posts/PostsRepository.java +++ b/src/main/java/com/beotkkot/qtudy/repository/posts/PostsRepository.java @@ -20,6 +20,8 @@ public interface PostsRepository extends JpaRepository { Posts findByPostId(Long postId); + List findAllByPostId(Long postId); + @Query("SELECT p FROM Posts p WHERE p.postId IN :postIds") List findByPostIds(@Param("postIds") List postIds); }