package cz.utb.tadis.auth.repository;

import cz.utb.tadis.auth.model.Role;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface RoleRepository extends JpaRepository<Role, Long> {

    Optional<Role> findByName(String name);
    Optional<Role> findByLabel(String label);

}
