package br.gov.sigefp.rh.repository;

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

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

import java.util.Optional; // Added

@Repository
public interface SalaryGradeRepository extends JpaRepository<SalaryGrade, UUID> {
    @org.springframework.data.jpa.repository.EntityGraph(attributePaths = { "category", "steps" })
    List<SalaryGrade> findByCategoryId(UUID categoryId);

    Optional<SalaryGrade> findByCode(String code);
}
