@NoRepositoryBean public interface MongoRepository<T,ID extends Serializable> extends PagingAndSortingRepository<T,ID>, QueryByExampleExecutor<T>
Repository interface.| Modifier and Type | Method and Description |
|---|---|
List<T> |
findAll() |
<S extends T> |
findAll(Example<S> example) |
<S extends T> |
findAll(Example<S> example,
Sort sort) |
List<T> |
findAll(Sort sort) |
<S extends T> |
insert(Iterable<S> entities)
Inserts the given entities.
|
<S extends T> |
insert(S entity)
Inserts the given entity.
|
<S extends T> |
save(Iterable<S> entites) |
findAllcount, delete, delete, delete, deleteAll, exists, findAll, findOne, savecount, exists, findAll, findOne<S extends T> List<S> save(Iterable<S> entites)
save in interface CrudRepository<T,ID extends Serializable>List<T> findAll()
findAll in interface CrudRepository<T,ID extends Serializable>List<T> findAll(Sort sort)
findAll in interface PagingAndSortingRepository<T,ID extends Serializable><S extends T> S insert(S entity)
CrudRepository.save(Object) instead to avoid the usage of store-specific API.entity - must not be null.<S extends T> List<S> insert(Iterable<S> entities)
save(Iterable). Prefer using save(Iterable) to avoid the usage of store
specific API.entities - must not be null.<S extends T> List<S> findAll(Example<S> example)
findAll in interface QueryByExampleExecutor<T>Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.