Skip to content

Commit

Permalink
feat: Add PostsRepository code (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: chaeeun-Han <[email protected]>
  • Loading branch information
Ahyun0326 and chaeeun-Han committed Mar 19, 2024
1 parent bcdae12 commit 9c0c730
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public interface PostsRepository extends JpaRepository<Posts, Long> {

Posts findByPostId(Long postId);

List<Posts> findAllByPostId(Long postId);

@Query("SELECT p FROM Posts p WHERE p.postId IN :postIds")
List<Posts> findByPostIds(@Param("postIds") List<Long> postIds);
}

0 comments on commit 9c0c730

Please sign in to comment.