package com.example.demo.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import com.example.demo.entity.Favorite;
import com.example.demo.entity.FavoriteId;

public interface FavoriteRepo extends JpaRepository<Favorite, FavoriteId> {

    @Transactional
    void deleteById_RecipeId(Integer recipeId);

    List<Favorite> findById_RecipeId(Integer recipeId);
}