package com.ecep.contract.ds.other.repository;

import java.util.Optional;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Repository;

import com.ecep.contract.ds.MyRepository;
import com.ecep.contract.model.EmployeeRole;

@Lazy
@Repository
public interface EmployeeRoleRepository extends MyRepository<EmployeeRole, Integer> {

    Optional<EmployeeRole> findByName(String name);

    Optional<EmployeeRole> findByCode(String personCode);
}
