Interface BackofficeRepository

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

@Repository public interface BackofficeRepository extends org.springframework.data.jpa.repository.JpaRepository<Backoffice,Integer>
Repository interface to do queries for BackOffice data.
  • Method Summary

    Modifier and Type
    Method
    Description
    Getting status by id.
    Getting status by Name.

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, 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<Backoffice> findByName(String name)
      Getting status by Name.
      Parameters:
      name - backoffice.
      Returns:
      the firm.
    • findById

      Optional<Backoffice> findById(Integer id)
      Getting status by id.
      Specified by:
      findById in interface org.springframework.data.repository.CrudRepository<Backoffice,Integer>
      Parameters:
      id - core user Id.
      Returns:
      the firm.