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

import java.util.List;
import java.util.Optional;

import org.springframework.stereotype.Repository;

import com.ecep.contract.ds.MyRepository;
import com.ecep.contract.model.CompanyVendor;
import com.ecep.contract.model.CompanyVendorEntity;

@Repository
public interface CompanyVendorEntityRepository extends MyRepository<CompanyVendorEntity, Integer> {
    Optional<CompanyVendorEntity> findByCode(String code);

    List<CompanyVendorEntity> findByVendor(CompanyVendor vendor);

}
