Interface RevisionRepository<T, ID, N extends Number & Comparable<N>>
- All Superinterfaces:
Repository<T,ID>
@NoRepositoryBean
public interface RevisionRepository<T, ID, N extends Number & Comparable<N>>
extends Repository<T,ID>
A repository which can access entities held in a variety of
Revisions.- Author:
- Oliver Gierke, Philipp Huegelmeyer
-
Method Summary
Modifier and TypeMethodDescriptionReturns the revision of the entity it was last changed in.findRevision(ID id, N revisionNumber) Returns the entity with the given ID in the given revision number.findRevisions(ID id) Returns allRevisionsof an entity with the given id.findRevisions(ID id, Pageable pageable) Returns aPageof revisions for the entity with the given id.
-
Method Details
-
findLastChangeRevision
-
findRevisions
-
findRevisions
Returns aPageof revisions for the entity with the given id. Note, that it's not guaranteed that implementations have to support sorting by all properties.- Parameters:
id- must not be null.pageable- the pageable to request a paged result, can bePageable.unpaged(), must not be null.- Returns:
- See Also:
-
findRevision
-