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.Vendor;
import com.ecep.contract.model.VendorEntity;

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

    List<VendorEntity> findByVendor(Vendor vendor);

}
