Interface RecipeRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Recipe,​Long>, org.springframework.data.jpa.repository.JpaRepository<Recipe,​Long>, org.springframework.data.repository.PagingAndSortingRepository<Recipe,​Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Recipe>, org.springframework.data.repository.Repository<Recipe,​Long>

public interface RecipeRepository extends org.springframework.data.jpa.repository.JpaRepository<Recipe,​Long>
This interface provides a way to use JPA to interface with the GoRecipe database to manage Recipes
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    existsBySpoonacularId​(Long spoonacularId)
     
     
    findRecipeBySpoonacularId​(Long spoonacularId)
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • existsBySpoonacularId

      boolean existsBySpoonacularId(Long spoonacularId)
    • findRecipeBySpoonacularId

      Recipe findRecipeBySpoonacularId(Long spoonacularId)
    • existsByName

      boolean existsByName(String name)
    • findAllByNameIn

      List<Recipe> findAllByNameIn(Iterable<String> names)