Interface OfficeRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Office,UUID>, org.springframework.data.jpa.repository.JpaRepository<Office,UUID>, org.springframework.data.repository.ListCrudRepository<Office,UUID>, org.springframework.data.repository.ListPagingAndSortingRepository<Office,UUID>, org.springframework.data.repository.PagingAndSortingRepository<Office,UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<Office>, org.springframework.data.repository.Repository<Office,UUID>

@Repository public interface OfficeRepository extends org.springframework.data.jpa.repository.JpaRepository<Office,UUID>
Repository for Office entity
  • Method Summary

    Modifier and Type
    Method
    Description
    Find all the offices with the given names.
    Find the office with the given 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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

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

    findAll, findAllById, saveAll

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

    findAll

    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<Office> findByName(String name)
      Find the office with the given name.
      Parameters:
      name - name of the office
      Returns:
      the office with the given name, as an Optional
    • findAllByNameIn

      List<Office> findAllByNameIn(List<String> names)
      Find all the offices with the given names.
      Parameters:
      names - names of the offices
      Returns:
      a list of offices with the given names