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