@NoRepositoryBean
public interface MongoRepository<T,ID>
extends org.springframework.data.repository.PagingAndSortingRepository<T,ID>, org.springframework.data.repository.query.QueryByExampleExecutor<T>
Repository interface.| Modifier and Type | Method and Description |
|---|---|
List<T> |
findAll() |
<S extends T> |
findAll(org.springframework.data.domain.Example<S> example) |
<S extends T> |
findAll(org.springframework.data.domain.Example<S> example,
org.springframework.data.domain.Sort sort) |
List<T> |
findAll(org.springframework.data.domain.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> entites) |
findAll<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(org.springframework.data.domain.Example<S> example)
findAll in interface org.springframework.data.repository.query.QueryByExampleExecutor<T>Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.