xiongzhu 4 년 전
부모
커밋
08264df7b1
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/main/java/com/izouma/nineth/repo/IdentityAuthRepo.java

+ 3 - 1
src/main/java/com/izouma/nineth/repo/IdentityAuthRepo.java

@@ -42,5 +42,7 @@ public interface IdentityAuthRepo extends JpaRepository<IdentityAuth, Long>, Jpa
     Page<Long> listUserId(Pageable pageable);
     Page<Long> listUserId(Pageable pageable);
 
 
     @Query("delete from IdentityAuth i where i.userId = ?1 and i.id <> ?2")
     @Query("delete from IdentityAuth i where i.userId = ?1 and i.id <> ?2")
-    List<Long> deleteDuplicated(Long userId, Long id);
+    @Modifying
+    @Transactional
+    void deleteDuplicated(Long userId, Long id);
 }
 }