package de.avatic.taric.repository;

import de.avatic.taric.model.CertificateType;
import jakarta.validation.constraints.NotNull;
import org.springframework.data.jdbc.core.mapping.AggregateReference;
import org.springframework.data.repository.CrudRepository;

import de.avatic.taric.model.Certificate;

import java.util.Optional;

public interface CertificateRepository extends CrudRepository<Certificate, Integer> {

    Iterable<Certificate> findByCertificateType(@NotNull AggregateReference<CertificateType, Integer> certificateType);
}
