@NoRepositoryBean public interface JpaRepository<T,ID extends Serializable> extends PagingAndSortingRepository<T,ID>
Repository.| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllInBatch()
Deletes all entites in a batch call.
|
void |
deleteInBatch(Iterable<T> entities)
Deletes the given entities in a batch which means it will create a single
Query. |
List<T> |
findAll() |
List<T> |
findAll(Sort sort) |
void |
flush()
Flushes all pending changes to the database.
|
<S extends T> |
save(Iterable<S> entities) |
T |
saveAndFlush(T entity)
Saves an entity and flushes changes instantly.
|
findAllList<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> List<S> save(Iterable<S> entities)
save in interface CrudRepository<T,ID extends Serializable>void flush()
T saveAndFlush(T entity)
entity - void deleteInBatch(Iterable<T> entities)
Query. Assume that we will clear
the EntityManager after the call.entities - void deleteAllInBatch()
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.