Interface WorkspaceRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Workspace,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<Workspace,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<Workspace,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Workspace>, org.springframework.data.repository.Repository<Workspace,​java.lang.Long>

    public interface WorkspaceRepository
    extends org.springframework.data.jpa.repository.JpaRepository<Workspace,​java.lang.Long>
    The database repository storing all workspaces
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<Workspace> findByAccount​(Account account)
      Finds all workspaces owned by the supplied account
      Workspace findByIdAndAccount​(long id, Account account)
      Finds a workspace with the supplied id and owned by the supplied account
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • findByAccount

        java.util.List<Workspace> findByAccount​(Account account)
        Finds all workspaces owned by the supplied account
        Parameters:
        account - the account to filter by
        Returns:
        the list of workspaces found
      • findByIdAndAccount

        Workspace findByIdAndAccount​(long id,
                                     Account account)
        Finds a workspace with the supplied id and owned by the supplied account
        Parameters:
        id - the if of the workspace to find
        account - the account to filter by
        Returns:
        the workspace found