Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Portfolio 관련 이슈 해결 #257

Merged
merged 1 commit into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading