Skip to content

Commit ff98bcf

Browse files
committed
feat(VolunteerRepository): deleteAllInBatch 추가
1 parent 88527c0 commit ff98bcf

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/main/java/com/somemore/volunteer/repository/VolunteerRepository.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ public interface VolunteerRepository {
1616
Optional<Volunteer> findByOauthId(String oauthId);
1717
String findNicknameById(UUID id);
1818
List<VolunteerOverviewForRankingByHours> findRankingByVolunteerHours();
19+
20+
void deleteAllInBatch();
1921
}

src/main/java/com/somemore/volunteer/repository/VolunteerRepositoryImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ public List<VolunteerOverviewForRankingByHours> findRankingByVolunteerHours() {
6262
.fetch();
6363
}
6464

65+
@Override
66+
public void deleteAllInBatch() {
67+
volunteerJpaRepository.deleteAllInBatch();
68+
}
69+
6570
private Optional<Volunteer> findOne(BooleanExpression condition) {
6671

6772
return Optional.ofNullable(

0 commit comments

Comments
 (0)