From 65f8aa0bd0a63be070d17aa096c0e3101921cdc7 Mon Sep 17 00:00:00 2001 From: yumzen Date: Sun, 29 Sep 2024 21:54:43 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Portfolio=20=EA=B4=80=EB=A0=A8=20?= =?UTF-8?q?=EC=9D=B4=EC=8A=88=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/portfolio/repository/PortfolioRepository.java | 4 ---- .../domain/portfolio/repository/PortfolioRepositoryImpl.java | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/gongjakso/server/domain/portfolio/repository/PortfolioRepository.java b/src/main/java/com/gongjakso/server/domain/portfolio/repository/PortfolioRepository.java index 6b20ed0e..3d20b9f1 100644 --- a/src/main/java/com/gongjakso/server/domain/portfolio/repository/PortfolioRepository.java +++ b/src/main/java/com/gongjakso/server/domain/portfolio/repository/PortfolioRepository.java @@ -1,14 +1,10 @@ package com.gongjakso.server.domain.portfolio.repository; -import com.gongjakso.server.domain.member.entity.Member; import com.gongjakso.server.domain.portfolio.entity.Portfolio; import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; -import org.springframework.data.jpa.repository.Query; -import org.springframework.data.repository.query.Param; public interface PortfolioRepository extends JpaRepository, PortfolioRepositoryCustom{ Optional findByIdAndDeletedAtIsNull(Long portfolioId); long countByDeletedAtIsNull(); - Optional findPortfolioById(Long portfolioId); } diff --git a/src/main/java/com/gongjakso/server/domain/portfolio/repository/PortfolioRepositoryImpl.java b/src/main/java/com/gongjakso/server/domain/portfolio/repository/PortfolioRepositoryImpl.java index f2bc6fa5..4fbb54c5 100644 --- a/src/main/java/com/gongjakso/server/domain/portfolio/repository/PortfolioRepositoryImpl.java +++ b/src/main/java/com/gongjakso/server/domain/portfolio/repository/PortfolioRepositoryImpl.java @@ -11,7 +11,7 @@ import static com.gongjakso.server.domain.portfolio.entity.QPortfolio.portfolio; @RequiredArgsConstructor -public class PortfolioRepositoryImpl { +public class PortfolioRepositoryImpl implements PortfolioRepositoryCustom { private final JPAQueryFactory queryFactory; public List findByMemberAndDeletedAtIsNull(Member member) {