@NoRepositoryBean public interface RevisionRepository<T,ID,N extends Number & Comparable<N>> extends Repository<T,ID>
Revisions
.Modifier and Type | Method and Description |
---|---|
Optional<Revision<N,T>> |
findLastChangeRevision(ID id)
Returns the revision of the entity it was last changed in.
|
Optional<Revision<N,T>> |
findRevision(ID id,
N revisionNumber)
Returns the entity with the given ID in the given revision number.
|
Revisions<N,T> |
findRevisions(ID id)
Returns all
Revisions of an entity with the given id. |
Page<Revision<N,T>> |
findRevisions(ID id,
Pageable pageable)
Returns a
Page of revisions for the entity with the given id. |
Optional<Revision<N,T>> findLastChangeRevision(ID id)
id
- must not be null.Revisions<N,T> findRevisions(ID id)
Revisions
of an entity with the given id.id
- must not be null.Page<Revision<N,T>> findRevisions(ID id, Pageable pageable)
Page
of revisions for the entity with the given id. Note, that it's not guaranteed that
implementations have to support sorting by all properties.id
- must not be null.pageable
- RevisionSort
Optional<Revision<N,T>> findRevision(ID id, N revisionNumber)
id
- must not be null.revisionNumber
- must not be null.Revision
of the entity with the given ID in the given revision number.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.