package br.gov.sigefp.rh.repository;

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

import java.util.UUID;

@Repository
public interface SalaryCategoryRepository extends JpaRepository<SalaryCategory, UUID> {
    boolean existsByCode(String code);

    @org.springframework.data.jpa.repository.EntityGraph(attributePaths = { "regime" })
    java.util.List<SalaryCategory> findAll();

    java.util.Optional<SalaryCategory> findByCode(String code);
}
