@NoRepositoryBean public interface MongoRepository<T,ID> 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> |
saveAll(Iterable<S> entities) |
findAllcount, delete, deleteAll, deleteAll, deleteById, existsById, findAllById, findById, savecount, exists, findAll, findOne<S extends T> List<S> saveAll(Iterable<S> entities)
saveAll in interface CrudRepository<T,ID>List<T> findAll(Sort sort)
findAll in interface PagingAndSortingRepository<T,ID><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–2019 Pivotal Software, Inc.. All rights reserved.