package com.example.demo.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.example.demo.entity.Recipe;
import com.example.demo.entity.RecipeIngredient;

public interface RecipeIngredientRepo extends JpaRepository<RecipeIngredient, Integer> {
	// Custom query: find all ingredients for a recipe
	List<RecipeIngredient> findByRecipeId(Integer recipeId);
	void deleteByRecipe(Recipe recipe);
}