package at.procon.dip.domain.document.repository;

import at.procon.dip.domain.document.entity.DocumentMailRecipient;
import java.util.List;
import java.util.UUID;
import org.springframework.data.jpa.repository.JpaRepository;

public interface DocumentMailRecipientRepository extends JpaRepository<DocumentMailRecipient, UUID> {

    List<DocumentMailRecipient> findByMailDocumentId(UUID mailDocumentId);

    void deleteByMailDocumentId(UUID mailDocumentId);
}
