File tree Expand file tree Collapse file tree 1 file changed +6
-17
lines changed
src/main/java/org/dfbf/soundlink/domain/emotionRecord/repository Expand file tree Collapse file tree 1 file changed +6
-17
lines changed Original file line number Diff line number Diff line change 33import org .dfbf .soundlink .domain .emotionRecord .entity .EmotionRecord ;
44import org .dfbf .soundlink .domain .emotionRecord .repository .dsl .EmotionRecordRepositoryCustom ;
55import org .dfbf .soundlink .domain .user .entity .User ;
6- import org .springframework .data .domain .Page ;
7- import org .springframework .data .domain .Pageable ;
86import org .springframework .data .jpa .repository .*;
97import org .springframework .data .repository .query .Param ;
108import org .springframework .stereotype .Repository ;
119
12- import java .util .Optional ;
13-
1410@ Repository
1511public interface EmotionRecordRepository extends JpaRepository <EmotionRecord , Long >, EmotionRecordRepositoryCustom {
1612
1713 @ Modifying (clearAutomatically = true )
1814 @ Query ("DELETE FROM EmotionRecord e WHERE e.user = :user" )
19- public void deleteByUser (@ Param ("user" ) User user );
20-
21- Page <EmotionRecord > findByLoginId (@ Param ("loginId" ) String loginId , Pageable pageable );
22-
23- Page <EmotionRecord > findByWithoutUserId (@ Param ("userId" ) Long userId , Pageable pageable );
24-
25- Optional <EmotionRecord > findByRecordId (@ Param ("recordId" ) Long recordId );
26-
27- int deleteByRecordId (@ Param ("recordId" ) Long recordId );
15+ void deleteByUser (@ Param ("user" ) User user );
2816}
2917
30- /**
31- * @Modifying(clearAutomatically = true)
32- * 1차 캐시안의 내용까지 지워버리는 옵션
33- */
18+ /*
19+ @Modifying(clearAutomatically = true)
20+ 1차 캐시안의 내용까지 지워버리는 옵션
21+ */
22+
3423
You can’t perform that action at this time.
0 commit comments