Skip to content

Commit

Permalink
fix: Portfolio 관련 이슈 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
yumzen committed Sep 29, 2024
1 parent 4ecea7a commit 65f8aa0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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<Portfolio, Long>, PortfolioRepositoryCustom{
Optional<Portfolio> findByIdAndDeletedAtIsNull(Long portfolioId);
long countByDeletedAtIsNull();
Optional<Portfolio> findPortfolioById(Long portfolioId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<Portfolio> findByMemberAndDeletedAtIsNull(Member member) {
Expand Down

0 comments on commit 65f8aa0

Please sign in to comment.