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

import java.util.List;
import java.util.Optional;

import org.springframework.stereotype.Repository;

import com.ecep.contract.ds.MyRepository;
import com.ecep.contract.model.CompanyCustomer;
import com.ecep.contract.model.CompanyCustomerEntity;

@Repository
public interface CompanyCustomerEntityRepository extends MyRepository<CompanyCustomerEntity, Integer>
{
    Optional<CompanyCustomerEntity> findByCode(String code);

    List<CompanyCustomerEntity> findByCustomer(CompanyCustomer customer);
}
