@Transactional(readOnly=true) public class EnversRevisionRepositoryImpl<T,ID,N extends Number & Comparable<N>> extends Object implements RevisionRepository<T,ID,N>
| Constructor and Description |
|---|
EnversRevisionRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,?> entityInformation,
RevisionEntityInformation revisionEntityInformation,
javax.persistence.EntityManager entityManager)
Creates a new
EnversRevisionRepositoryImpl using the given JpaEntityInformation,
RevisionEntityInformation and EntityManager. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Revision<N,T>> |
findLastChangeRevision(ID id) |
Optional<Revision<N,T>> |
findRevision(ID id,
N revisionNumber) |
Revisions<N,T> |
findRevisions(ID id) |
Page<Revision<N,T>> |
findRevisions(ID id,
Pageable pageable) |
public EnversRevisionRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<T,?> entityInformation, RevisionEntityInformation revisionEntityInformation, javax.persistence.EntityManager entityManager)
EnversRevisionRepositoryImpl using the given JpaEntityInformation,
RevisionEntityInformation and EntityManager.entityInformation - must not be null.revisionEntityInformation - must not be null.entityManager - must not be null.public Optional<Revision<N,T>> findLastChangeRevision(ID id)
findLastChangeRevision in interface RevisionRepository<T,ID,N extends Number & Comparable<N>>public Optional<Revision<N,T>> findRevision(ID id, N revisionNumber)
findRevision in interface RevisionRepository<T,ID,N extends Number & Comparable<N>>public Revisions<N,T> findRevisions(ID id)
findRevisions in interface RevisionRepository<T,ID,N extends Number & Comparable<N>>public Page<Revision<N,T>> findRevisions(ID id, Pageable pageable)
findRevisions in interface RevisionRepository<T,ID,N extends Number & Comparable<N>>Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.