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.ContractCatalog;

@Repository
public interface ContractCatalogRepository extends MyRepository<ContractCatalog, Integer> {

    Optional<ContractCatalog> findByCode(String code);

    Optional<ContractCatalog> findByName(String name);

}
