package br.gov.sigefp.rh.repository;

import br.gov.sigefp.rh.domain.PerformanceEvaluation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.UUID;

@Repository
public interface PerformanceEvaluationRepository extends JpaRepository<PerformanceEvaluation, UUID> {
    List<PerformanceEvaluation> findByAgentIdOrderByReferenceYearDesc(UUID agentId);

    List<PerformanceEvaluation> findByAgentIdAndReferenceYearBetweenOrderByReferenceYearDesc(UUID agentId,
            Integer startYear, Integer endYear);
}
