diff --git a/backend/src/main/java/com/festago/festival/repository/FestivalInfoRepository.java b/backend/src/main/java/com/festago/festival/repository/FestivalInfoRepository.java index 3dce9a9b4..56c44fd56 100644 --- a/backend/src/main/java/com/festago/festival/repository/FestivalInfoRepository.java +++ b/backend/src/main/java/com/festago/festival/repository/FestivalInfoRepository.java @@ -1,7 +1,6 @@ package com.festago.festival.repository; import com.festago.festival.domain.FestivalQueryInfo; -import java.util.List; import java.util.Optional; import org.springframework.data.repository.Repository; @@ -12,7 +11,5 @@ public interface FestivalInfoRepository extends Repository findByFestivalId(Long festivalId); void deleteByFestivalId(Long festivalId); - - List findAll(); } diff --git a/backend/src/main/java/com/festago/festival/repository/FestivalRepository.java b/backend/src/main/java/com/festago/festival/repository/FestivalRepository.java index 785668ca6..e807237b6 100644 --- a/backend/src/main/java/com/festago/festival/repository/FestivalRepository.java +++ b/backend/src/main/java/com/festago/festival/repository/FestivalRepository.java @@ -3,7 +3,6 @@ import com.festago.common.exception.ErrorCode; import com.festago.common.exception.NotFoundException; import com.festago.festival.domain.Festival; -import java.util.List; import java.util.Optional; import org.springframework.data.repository.Repository; @@ -17,10 +16,8 @@ default Festival getOrThrow(Long festivalId) { boolean existsBySchoolId(Long schoolId); Festival save(Festival festival); - + Optional findById(Long festivalId); void deleteById(Long festivalId); - - List findAll(); } diff --git a/backend/src/main/java/com/festago/stage/repository/StageArtistRepository.java b/backend/src/main/java/com/festago/stage/repository/StageArtistRepository.java index 9c22e7df9..0c239b68a 100644 --- a/backend/src/main/java/com/festago/stage/repository/StageArtistRepository.java +++ b/backend/src/main/java/com/festago/stage/repository/StageArtistRepository.java @@ -18,6 +18,4 @@ public interface StageArtistRepository extends Repository { Set findAllArtistIdByStageIdIn(@Param("stageIds") List stageIds); void deleteByStageId(Long stageId); - - List findAll(); } diff --git a/backend/src/main/java/com/festago/stage/repository/StageQueryInfoRepository.java b/backend/src/main/java/com/festago/stage/repository/StageQueryInfoRepository.java index 0daea7408..60e21bcc8 100644 --- a/backend/src/main/java/com/festago/stage/repository/StageQueryInfoRepository.java +++ b/backend/src/main/java/com/festago/stage/repository/StageQueryInfoRepository.java @@ -1,7 +1,6 @@ package com.festago.stage.repository; import com.festago.stage.domain.StageQueryInfo; -import java.util.List; import java.util.Optional; import org.springframework.data.repository.Repository; @@ -12,6 +11,4 @@ public interface StageQueryInfoRepository extends Repository findByStageId(Long stageId); void deleteByStageId(Long stageId); - - List findAll(); } diff --git a/backend/src/main/java/com/festago/stage/repository/StageRepository.java b/backend/src/main/java/com/festago/stage/repository/StageRepository.java index 916075077..27335cf93 100644 --- a/backend/src/main/java/com/festago/stage/repository/StageRepository.java +++ b/backend/src/main/java/com/festago/stage/repository/StageRepository.java @@ -18,7 +18,4 @@ public interface StageRepository extends Repository, StageRepositor boolean existsByFestivalId(Long festivalId); List findAllByFestivalId(Long festivalId); - - List findAll(); - } diff --git a/backend/src/test/java/com/festago/festival/repository/MemoryFestivalQueryInfoRepository.java b/backend/src/test/java/com/festago/festival/repository/MemoryFestivalQueryInfoRepository.java index 894e3155f..b2c96cd96 100644 --- a/backend/src/test/java/com/festago/festival/repository/MemoryFestivalQueryInfoRepository.java +++ b/backend/src/test/java/com/festago/festival/repository/MemoryFestivalQueryInfoRepository.java @@ -2,8 +2,6 @@ import com.festago.festival.domain.FestivalQueryInfo; import java.lang.reflect.Field; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; @@ -41,9 +39,4 @@ public Optional findByFestivalId(Long festivalId) { public void deleteByFestivalId(Long festivalId) { memory.entrySet().removeIf(it -> Objects.equals(it.getValue().getFestivalId(), festivalId)); } - - @Override - public List findAll() { - return new ArrayList<>(memory.values()); - } } diff --git a/backend/src/test/java/com/festago/festival/repository/MemoryFestivalRepository.java b/backend/src/test/java/com/festago/festival/repository/MemoryFestivalRepository.java index 2e327b968..f8257c591 100644 --- a/backend/src/test/java/com/festago/festival/repository/MemoryFestivalRepository.java +++ b/backend/src/test/java/com/festago/festival/repository/MemoryFestivalRepository.java @@ -2,8 +2,6 @@ import com.festago.festival.domain.Festival; import java.lang.reflect.Field; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; @@ -45,9 +43,4 @@ public Optional findById(Long festivalId) { public void deleteById(Long festivalId) { memory.remove(festivalId); } - - @Override - public List findAll() { - return new ArrayList<>(memory.values()); - } } diff --git a/backend/src/test/java/com/festago/stage/repository/MemoryStageArtistRepository.java b/backend/src/test/java/com/festago/stage/repository/MemoryStageArtistRepository.java index 5809c7e40..419e886da 100644 --- a/backend/src/test/java/com/festago/stage/repository/MemoryStageArtistRepository.java +++ b/backend/src/test/java/com/festago/stage/repository/MemoryStageArtistRepository.java @@ -4,7 +4,6 @@ import com.festago.stage.domain.StageArtist; import java.lang.reflect.Field; -import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.Set; @@ -52,9 +51,4 @@ public Set findAllArtistIdByStageIdIn(List stageIds) { public void deleteByStageId(Long stageId) { memory.entrySet().removeIf(entry -> Objects.equals(entry.getValue().getStageId(), stageId)); } - - @Override - public List findAll() { - return new ArrayList<>(memory.values()); - } } diff --git a/backend/src/test/java/com/festago/stage/repository/MemoryStageRepository.java b/backend/src/test/java/com/festago/stage/repository/MemoryStageRepository.java index 588cdd599..0724e300a 100644 --- a/backend/src/test/java/com/festago/stage/repository/MemoryStageRepository.java +++ b/backend/src/test/java/com/festago/stage/repository/MemoryStageRepository.java @@ -2,7 +2,6 @@ import com.festago.stage.domain.Stage; import java.lang.reflect.Field; -import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.Optional; @@ -58,11 +57,6 @@ public List findAllByFestivalId(Long festivalId) { .toList(); } - @Override - public List findAll() { - return new ArrayList<>(memory.values()); - } - @Override public List findAllDetailByFestivalId(Long festivalId) { return findAllByFestivalId(festivalId);