package org.raddatz.familienarchiv.document.comment;

import org.raddatz.familienarchiv.document.comment.DocumentComment;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.UUID;

public interface CommentRepository extends JpaRepository<DocumentComment, UUID> {

    List<DocumentComment> findByParentId(UUID parentId);

    List<DocumentComment> findByBlockIdAndParentIdIsNull(UUID blockId);
}
