package br.gov.sigefp.rh.repository;

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

import java.util.Optional;
import java.util.UUID;

@Repository
public interface CareerRegimeRepository extends JpaRepository<CareerRegime, UUID> {
    Optional<CareerRegime> findByCode(String code);

    boolean existsByCode(String code);
}
