Interface BlogCategoryRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<BlogCategory,​java.lang.String>, org.springframework.data.mongodb.repository.MongoRepository<BlogCategory,​java.lang.String>, org.springframework.data.repository.PagingAndSortingRepository<BlogCategory,​java.lang.String>, org.springframework.data.repository.query.QueryByExampleExecutor<BlogCategory>, org.springframework.data.repository.Repository<BlogCategory,​java.lang.String>

    @Repository
    public interface BlogCategoryRepository
    extends org.springframework.data.mongodb.repository.MongoRepository<BlogCategory,​java.lang.String>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.springframework.data.domain.Page<BlogCategory> search​(java.lang.String query, org.springframework.data.domain.Pageable page)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findAllById, findById, save
      • Methods inherited from interface org.springframework.data.mongodb.repository.MongoRepository

        findAll, findAll, findAll, findAll, insert, insert, saveAll
      • 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

      • search

        @Query("{ $or: [{ name : {$regex:?0,$options:\'i\'}},{ keywords : {$regex:?0,$options:\'i\'}},{ searchTerms : {$regex:?0,$options:\'i\'}} ]}")
        org.springframework.data.domain.Page<BlogCategory> search​(java.lang.String query,
                                                                  org.springframework.data.domain.Pageable page)