Skip to content

Commit 0137acb

Browse files
committed
fix: findById 오버라이딩하도록 수정
#1397
1 parent 7124da0 commit 0137acb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/src/main/java/wooteco/prolog/roadmap/domain/repository/KeywordRepository.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
package wooteco.prolog.roadmap.domain.repository;
22

3-
import java.util.List;
4-
import java.util.Set;
53
import org.springframework.data.jpa.repository.EntityGraph;
64
import org.springframework.data.jpa.repository.JpaRepository;
75
import org.springframework.data.jpa.repository.Query;
86
import org.springframework.data.repository.query.Param;
97
import wooteco.prolog.roadmap.domain.Keyword;
108

9+
import java.util.List;
1110
import java.util.Optional;
11+
import java.util.Set;
1212

1313
import static org.springframework.data.jpa.repository.EntityGraph.EntityGraphType.FETCH;
1414

1515
public interface KeywordRepository extends JpaRepository<Keyword, Long> {
1616

1717
@EntityGraph(attributePaths = "recommendedPosts", type = FETCH)
18-
Optional<Keyword> findById(final long id);
18+
Optional<Keyword> findById(final Long id);
1919

2020
@EntityGraph(attributePaths = "recommendedPosts", type = FETCH)
2121
List<Keyword> findAll();

0 commit comments

Comments
 (0)