OWL ITS + 탐지시스템(인터넷 진흥원)
wyu
2022-01-06 0dca48e62f053d2fa725649ee2842412a9b4f476
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package kr.wisestone.owl.repository;
 
import kr.wisestone.owl.domain.Issue;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
 
import java.util.List;
 
public interface IssueRepository extends JpaRepository<Issue, Long> {
    List<Issue> findByParentIssueId(@Param("parentIssueId") Long parentIssueId);
 
    Page<Issue> findByParentIssueId(@Param("parentIssueId") Long parentIssueId, Pageable pageable);
}