Interface TypesRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<TypeIngredient,Integer>, org.springframework.data.jpa.repository.JpaRepository<TypeIngredient,Integer>, org.springframework.data.repository.PagingAndSortingRepository<TypeIngredient,Integer>, org.springframework.data.repository.query.QueryByExampleExecutor<TypeIngredient>, org.springframework.data.repository.Repository<TypeIngredient,Integer>

@Repository public interface TypesRepository extends org.springframework.data.jpa.repository.JpaRepository<TypeIngredient,Integer>
Type of Ingredient Repository
  • Method Summary

    Modifier and Type
    Method
    Description
    Search for a Type of Ingredient by name

    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, getReferenceById, 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

    • findByName

      Optional<TypeIngredient> findByName(String name)
      Search for a Type of Ingredient by name
      Parameters:
      name - Ingredient name
      Returns:
      An object that may contain a Type of Ingredient or be empty