Skip to content

Commit 9eaff3a

Browse files
committed
refactor: findAllByIdIn을 JPA 기본 메서드로 변경
1 parent 95919d6 commit 9eaff3a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

nmnb-domain/src/main/kotlin/nmnb/domain/post/repository/PostRepository.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ interface PostRepository : JpaRepository<Post, Long> {
88
@Query("SELECT p.id FROM Post p")
99
fun findAllPostId(): List<Long>
1010

11-
@Query("SELECT p FROM Post p WHERE p.id IN :ids")
12-
fun findAllByIdIn(ids: List<Long>): List<Post>
11+
fun findAllByIdIn(ids: Iterable<Long>): List<Post>
1312
}

0 commit comments

Comments
 (0)