package br.gov.sigefp.admin.repository;

import br.gov.sigefp.admin.domain.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

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

@Repository
public interface RoleRepository extends JpaRepository<Role, UUID> {
    
    Optional<Role> findByCode(String code);
    
    boolean existsByCode(String code);
}

