@NoRepositoryBean public interface MongoRepository<T,ID extends Serializable> extends PagingAndSortingRepository<T,ID>
Repository interface.| Modifier and Type | Method and Description |
|---|---|
List<T> |
findAll() |
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 a given entity.
|
<S extends T> |
save(Iterable<S> entites) |
findAll<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.Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.