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.model.PurchaseOrder;
import com.ecep.contract.model.PurchaseOrderItem;

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

    List<PurchaseOrderItem> findAllByRefId(int refId);

    List<PurchaseOrderItem> findAllByOrder(PurchaseOrder order);

}
