package com.devjob.repository;

import com.devjob.domain.Job;
import com.devjob.domain.JobStatus;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * EP11: Pageable을 받아 Page<Job>을 반환하는 페이징 쿼리 메서드.
 */
public interface JobRepository extends JpaRepository<Job, Long> {

    Page<Job> findByStatus(JobStatus status, Pageable pageable);

    Page<Job> findByTitleContaining(String title, Pageable pageable);
}
