Commit 0137acb 1 parent 7124da0 commit 0137acb Copy full SHA for 0137acb
File tree 1 file changed +3
-3
lines changed
backend/src/main/java/wooteco/prolog/roadmap/domain/repository
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
package wooteco .prolog .roadmap .domain .repository ;
2
2
3
- import java .util .List ;
4
- import java .util .Set ;
5
3
import org .springframework .data .jpa .repository .EntityGraph ;
6
4
import org .springframework .data .jpa .repository .JpaRepository ;
7
5
import org .springframework .data .jpa .repository .Query ;
8
6
import org .springframework .data .repository .query .Param ;
9
7
import wooteco .prolog .roadmap .domain .Keyword ;
10
8
9
+ import java .util .List ;
11
10
import java .util .Optional ;
11
+ import java .util .Set ;
12
12
13
13
import static org .springframework .data .jpa .repository .EntityGraph .EntityGraphType .FETCH ;
14
14
15
15
public interface KeywordRepository extends JpaRepository <Keyword , Long > {
16
16
17
17
@ EntityGraph (attributePaths = "recommendedPosts" , type = FETCH )
18
- Optional <Keyword > findById (final long id );
18
+ Optional <Keyword > findById (final Long id );
19
19
20
20
@ EntityGraph (attributePaths = "recommendedPosts" , type = FETCH )
21
21
List <Keyword > findAll ();
You can’t perform that action at this time.
0 commit comments