Interface DummyRepositoryMongo

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<DummyMongoBean> findByAge​(int age)  
      java.util.Optional<DummyMongoBean> findByName​(java.lang.String key)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

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

      • findByName

        java.util.Optional<DummyMongoBean> findByName​(java.lang.String key)