E - The entity typeID - The ID typepublic interface JpaRepository<E,ID> extends CrudRepository<E,ID>, PageableRepository<E,ID>
CrudRepository and PageableRepository.| Modifier and Type | Method and Description |
|---|---|
java.util.List<E> |
findAll()
Returns all instances of the type.
|
java.util.List<E> |
findAll(Sort sort)
Find all results for the given sort order.
|
void |
flush()
Adds a flush method.
|
<S extends E> |
saveAll(@Valid @NotNull java.lang.Iterable<S> entities)
Saves all given entities, possibly returning new instances representing the saved state.
|
<S extends E> |
saveAndFlush(S entity)
Save and perform a flush() of any pending operations.
|
findAllcount, delete, deleteAll, deleteAll, deleteById, existsById, findById, save, update@NonNull <S extends E> java.util.List<S> saveAll(@NonNull @Valid @NotNull @Valid @NotNull java.lang.Iterable<S> entities)
CrudRepositorysaveAll in interface CrudRepository<E,ID>S - The generic typeentities - The entities to saved. Must not be null.@NonNull java.util.List<E> findAll()
CrudRepositoryfindAll in interface CrudRepository<E,ID>@NonNull java.util.List<E> findAll(@NonNull Sort sort)
PageableRepositoryfindAll in interface PageableRepository<E,ID>sort - The sort@QueryHint(name="javax.persistence.FlushModeType", value="AUTO") <S extends E> S saveAndFlush(@NonNull @Valid @NotNull S entity)
S - The entity generic typeentity - The entityvoid flush()