Interface CafeRepository

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

@Service public interface CafeRepository extends org.springframework.data.jpa.repository.JpaRepository<Cafe,Integer>
Repository for Entity Cafe
  • Method Summary

    Modifier and Type
    Method
    Description
    findById(int cafeId)
    Search cafe by ID

    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

    • findById

      Optional<Cafe> findById(int cafeId)
      Search cafe by ID
      Parameters:
      cafeId -
      Returns:
      An object that may contain a Cafe or be empty