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

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.ecep.contract.model.ContractItem;

@Repository
public interface ContractItemRepository extends JpaRepository<ContractItem, Integer>, JpaSpecificationExecutor<ContractItem> {

    List<ContractItem> findByContractId(int contractId);

    List<ContractItem> findByInventoryId(int inventoryId);
}