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 { List findByParentIssueId(@Param("parentIssueId") Long parentIssueId); Page findByParentIssueId(@Param("parentIssueId") Long parentIssueId, Pageable pageable); }