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

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ecep.contract.CompanyCustomerFileType;
import com.ecep.contract.ds.MyRepository;
import com.ecep.contract.model.CompanyCustomer;
import com.ecep.contract.model.CompanyCustomerFile;

@Repository
public interface CompanyCustomerFileRepository extends MyRepository<CompanyCustomerFile, Integer>  {

    List<CompanyCustomerFile> findAllByCustomer(CompanyCustomer companyCustomer);

    List<CompanyCustomerFile> findAllByCustomerAndType(CompanyCustomer customer, CompanyCustomerFileType type);
}