package de.votian.services.repository;

import de.votian.services.entity.ServiceZipCodeNeighbour;
import de.votian.services.entity.ServiceZipCodeNeighbourId;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Collection;
import java.util.List;

public interface ServiceZipCodeNeighbourRepository extends JpaRepository<ServiceZipCodeNeighbour, ServiceZipCodeNeighbourId> {

    List<ServiceZipCodeNeighbour> findByHeadquartersIdAndZipCodeIdIn(Long headquartersId, Collection<Long> zipCodeIds);
}
