Interface UserBackofficeRepository

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

@Repository public interface UserBackofficeRepository extends org.springframework.data.jpa.repository.JpaRepository<UserBackoffice,String>
Repository for queries for User Back Office.
  • Method Summary

    Modifier and Type
    Method
    Description
    query for filter user and deviceId.
    query for filter user and backoffice.

    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

    • findUserBackofficeByCoreUserIdAndBackofficeId

      @Query("select ub from UserBackoffice ub where ub.coreUserId = :coreUserId and ub.backoffice.id = :backofficeId") UserBackoffice findUserBackofficeByCoreUserIdAndBackofficeId(@Param("coreUserId") String userId, @Param("backofficeId") String backofficeId)
      query for filter user and deviceId.
      Parameters:
      userId - user identifier
      backofficeId - unique identifier of the device..
      Returns:
      UserDevice found in database.
    • findUserBackofficeByUserIdAndBackofficeId

      @Query("select ub from UserBackoffice ub where ub.user.id = :userId and ub.backoffice.id = :backofficeId") UserBackoffice findUserBackofficeByUserIdAndBackofficeId(@Param("userId") String userId, @Param("backofficeId") String backofficeId)
      query for filter user and backoffice.
      Parameters:
      userId - user identifier
      backofficeId - unique identifier of the device..
      Returns:
      UserDevice found in database.