package de.avatic.taric.repository;

import de.avatic.taric.model.Import;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;

@Repository
public interface ImportRepository extends CrudRepository<Import, Integer> {

    List<Import> findByNomenclatureAndGeo(Integer nomenclatureId, Integer geoId);

    List<Import> findByNomenclatureAndGeoGroupIn(Integer nomenclatureId, List<Integer> geoGroupIds);

    List<Import> findByNomenclatureAndGeoGroup(Integer nomenclatureId, Integer geoGroupId);

}
