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.Contract;
import com.ecep.contract.model.ContractPayPlan;

@Repository
public interface ContractPayPlanRepository extends MyRepository<ContractPayPlan, Integer> {

    List<ContractPayPlan> findAllByContractId(Integer contractId);

    List<ContractPayPlan> findAllByContract(Contract contract);

}
