Interface OptionRepository

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

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

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

        count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAllById, 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, findBy, findOne
    • Method Detail

      • findById

        java.util.Optional<Option> findById​(java.lang.String id)
        Specified by:
        findById in interface org.springframework.data.repository.CrudRepository<Option,​java.lang.String>
      • search

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