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

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ecep.contract.ds.MyRepository;
import com.ecep.contract.ds.vendor.model.PurchaseOrder;
import com.ecep.contract.ds.vendor.model.PurchaseOrderItem;

@Repository
public interface PurchaseOrderItemRepository extends MyRepository<PurchaseOrderItem, Integer>{

    List<PurchaseOrderItem> findAllByRefId(int refId);

    List<PurchaseOrderItem> findAllByOrder(PurchaseOrder order);

}
