package de.oaa.xxx.feed.repository;

import de.oaa.xxx.feed.entity.FeedPostOptionEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

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

public interface FeedPostOptionRepository extends JpaRepository<FeedPostOptionEntity, UUID> {

    List<FeedPostOptionEntity> findByPostIdOrderByReihenfolge(UUID postId);

    @Transactional
    void deleteByPostId(UUID postId);
}
