package br.gov.sigefp.rh.repository;

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

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

import br.gov.sigefp.rh.domain.SalaryGrade;
import java.util.Optional;

@Repository
public interface SalaryStepRepository extends JpaRepository<SalaryStep, UUID> {
    List<SalaryStep> findByGradeIdOrderByStepNumber(UUID gradeId);

    Optional<SalaryStep> findByGradeAndStepNumber(SalaryGrade grade, Integer stepNumber);
}
