Skip to content

Commit 14de8b6

Browse files
committed
feat(volunteer-apply): 레포지토리 기능 추가
1 parent 85f9d15 commit 14de8b6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/main/java/com/somemore/volunteerapply/repository/VolunteerApplyRepository.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@
1010
public interface VolunteerApplyRepository {
1111

1212
VolunteerApply save(VolunteerApply volunteerApply);
13+
14+
List<VolunteerApply> saveAll(List<VolunteerApply> volunteerApplies);
15+
1316
Optional<VolunteerApply> findById(Long id);
17+
1418
List<UUID> findVolunteerIdsByRecruitIds(List<Long> recruitIds);
19+
1520
Page<VolunteerApply> findAllByRecruitId(Long recruitId, Pageable pageable);
21+
1622
Optional<VolunteerApply> findByRecruitIdAndVolunteerId(Long recruitId, UUID volunteerId);
1723
}

src/main/java/com/somemore/volunteerapply/repository/VolunteerApplyRepositoryImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ public VolunteerApply save(VolunteerApply volunteerApply) {
2929
return volunteerApplyJpaRepository.save(volunteerApply);
3030
}
3131

32+
@Override
33+
public List<VolunteerApply> saveAll(List<VolunteerApply> volunteerApplies) {
34+
return volunteerApplyJpaRepository.saveAll(volunteerApplies);
35+
}
36+
3237
@Override
3338
public Optional<VolunteerApply> findById(Long id) {
3439
return findOne(volunteerApply.id.eq(id));

0 commit comments

Comments
 (0)