@NoRepositoryBean public interface JpaRepository<T,ID extends Serializable> extends PagingAndSortingRepository<T,ID>, QueryByExampleExecutor<T>
Repository.| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllInBatch()
Deletes all entities 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() |
<S extends T> |
findAll(Example<S> example) |
<S extends T> |
findAll(Example<S> example,
Sort sort) |
List<T> |
findAll(Iterable<ID> ids) |
List<T> |
findAll(Sort sort) |
void |
flush()
Flushes all pending changes to the database.
|
T |
getOne(ID id)
Returns a reference to the entity with the given identifier.
|
<S extends T> |
save(Iterable<S> entities) |
<S extends T> |
saveAndFlush(S entity)
Saves an entity and flushes changes instantly.
|
findAllcount, delete, delete, delete, deleteAll, exists, findOne, savecount, exists, findAll, findOneList<T> findAll()
findAll in interface CrudRepository<T,ID extends Serializable>List<T> findAll(Sort sort)
findAll in interface PagingAndSortingRepository<T,ID extends Serializable>List<T> findAll(Iterable<ID> ids)
findAll in interface CrudRepository<T,ID extends Serializable><S extends T> List<S> save(Iterable<S> entities)
save in interface CrudRepository<T,ID extends Serializable>void flush()
<S extends T> S saveAndFlush(S entity)
entity - void deleteInBatch(Iterable<T> entities)
Query. Assume that we will clear
the EntityManager after the call.entities - void deleteAllInBatch()
T getOne(ID id)
id - must not be null.EntityManager.getReference(Class, Object)<S extends T> List<S> findAll(Example<S> example)
findAll in interface QueryByExampleExecutor<T>Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.