OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-12-14 65cecc86cda6edd84bf094f4b00d10e34c060020
1
2
3
4
5
6
7
8
9
10
11
12
13
package kr.wisestone.owl.repository;
 
import kr.wisestone.owl.domain.ApiToken;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
 
import java.util.List;
 
public interface ApiTokenRepository extends JpaRepository<ApiToken, Long> {
    List<ApiToken> findByUserId(@Param("userId") Long userId);
 
    List<ApiToken> findByToken(@Param("token") String token);
}