mirror of
https://gitlab.com/etc404/software-engineering-project.git
synced 2026-05-10 20:52:58 +00:00
this thing has the database
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user