mirror of
https://gitlab.com/etc404/software-engineering-project.git
synced 2026-05-10 20:52:58 +00:00
10 lines
359 B
Java
10 lines
359 B
Java
package com.example.database;
|
|
|
|
import org.springframework.data.repository.CrudRepository;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
@Repository
|
|
public interface RecipeIngredientRepo extends CrudRepository<RecipeIngredient, Integer> {
|
|
// Custom query: find all ingredients for a recipe
|
|
Iterable<RecipeIngredient> findByRecipe(Recipe recipe);
|
|
} |