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

import java.util.Optional;

import org.springframework.stereotype.Repository;

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

@Repository
public interface ContractTypeRepository extends MyRepository<ContractType, Integer> {

    Optional<ContractType> findByCode(String code);

    Optional<ContractType> findByName(String name);
}
