diff --git a/BE/exceed/src/main/java/com/gaebaljip/exceed/food/adapter/out/FoodRepository.java b/BE/exceed/src/main/java/com/gaebaljip/exceed/food/adapter/out/FoodRepository.java index 19e859b6e..9cce5fe35 100644 --- a/BE/exceed/src/main/java/com/gaebaljip/exceed/food/adapter/out/FoodRepository.java +++ b/BE/exceed/src/main/java/com/gaebaljip/exceed/food/adapter/out/FoodRepository.java @@ -7,11 +7,10 @@ import org.springframework.data.jpa.repository.Query; import org.springframework.transaction.annotation.Transactional; -import com.gaebaljip.exceed.food.domain.Food; import com.gaebaljip.exceed.member.adapter.out.persistence.MemberEntity; public interface FoodRepository extends JpaRepository { - List findByMemberEntityId(Long memberId); + List findByMemberEntityId(Long memberId); @Query("delete from FoodEntity f where f.id in :ids") @Modifying diff --git a/BE/exceed/src/main/java/com/gaebaljip/exceed/food/adapter/out/FoodsPersistenceAdapter.java b/BE/exceed/src/main/java/com/gaebaljip/exceed/food/adapter/out/FoodsPersistenceAdapter.java index 3b76a0e00..d9dd877fe 100644 --- a/BE/exceed/src/main/java/com/gaebaljip/exceed/food/adapter/out/FoodsPersistenceAdapter.java +++ b/BE/exceed/src/main/java/com/gaebaljip/exceed/food/adapter/out/FoodsPersistenceAdapter.java @@ -54,7 +54,7 @@ public void saveAll(List foodEntities) { } @Override - public List findByMemberId(Long memberId) { + public List findByMemberId(Long memberId) { return foodRepository.findByMemberEntityId(memberId); } diff --git a/BE/exceed/src/main/java/com/gaebaljip/exceed/food/application/port/out/FoodPort.java b/BE/exceed/src/main/java/com/gaebaljip/exceed/food/application/port/out/FoodPort.java index bbff21070..a28f973d0 100644 --- a/BE/exceed/src/main/java/com/gaebaljip/exceed/food/application/port/out/FoodPort.java +++ b/BE/exceed/src/main/java/com/gaebaljip/exceed/food/application/port/out/FoodPort.java @@ -23,7 +23,7 @@ public interface FoodPort { void saveAll(List foodEntities); - List findByMemberId(Long memberId); + List findByMemberId(Long memberId); void deleteByAllByIdInQuery(List ids);