package de.votian.services.repository;

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

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

public interface ServiceZipCodeRepository extends JpaRepository<ServiceZipCode, Long> {

    Optional<ServiceZipCode> findByZipcode(String zipcode);

    List<ServiceZipCode> findByZipcodeIn(Collection<String> zipcodes);
}
