|
|
|
@ -7,6 +7,13 @@ import org.springframework.data.jpa.repository.JpaRepository; |
|
|
|
|
|
|
|
|
|
import com.example.todoapp.model.RecipeStuffs; |
|
|
|
|
|
|
|
|
|
import jakarta.transaction.Transactional; |
|
|
|
|
|
|
|
|
|
import org.springframework.data.jpa.repository.Modifying; |
|
|
|
|
import org.springframework.data.jpa.repository.Query; |
|
|
|
|
import org.springframework.data.repository.query.Param; |
|
|
|
|
import org.springframework.stereotype.Repository; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* レシピ食材関連データのリポジトリインターフェース |
|
|
|
|
* <p> |
|
|
|
@ -31,4 +38,5 @@ public interface RecipeStuffsRepository extends JpaRepository<RecipeStuffs, Long |
|
|
|
|
* @return 関連情報(存在する場合) |
|
|
|
|
*/ |
|
|
|
|
Optional<RecipeStuffs> findByRecipesRecipeIdAndStuffStuffId(Long recipeId, Long stuffId); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|