Class EnversRevisionRepositoryImpl<T,ID,N extends Number & Comparable<N>>
java.lang.Object
org.springframework.data.envers.repository.support.EnversRevisionRepositoryImpl<T,ID,N>
- All Implemented Interfaces:
org.springframework.data.repository.history.RevisionRepository<T,
,ID, N> org.springframework.data.repository.Repository<T,
ID>
@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>
Repository implementation using Hibernate Envers to implement revision specific query methods.
- Author:
- Oliver Gierke, Philipp Huegelmeyer, Michael Igler, Jens Schauder, Julien Millau, Mark Paluch, Sander Bylemans, Niklas Loechte, Donghun Shin, Greg Turnquist
-
Constructor Summary
ConstructorDescriptionEnversRevisionRepositoryImpl
(JpaEntityInformation<T, ?> entityInformation, org.springframework.data.repository.history.support.RevisionEntityInformation revisionEntityInformation, jakarta.persistence.EntityManager entityManager) Creates a newEnversRevisionRepositoryImpl
using the givenJpaEntityInformation
,RevisionEntityInformation
andEntityManager
. -
Method Summary
Modifier and TypeMethodDescriptionfindRevision
(ID id, N revisionNumber) findRevisions
(ID id) findRevisions
(ID id, org.springframework.data.domain.Pageable pageable)
-
Constructor Details
-
EnversRevisionRepositoryImpl
public EnversRevisionRepositoryImpl(JpaEntityInformation<T, ?> entityInformation, org.springframework.data.repository.history.support.RevisionEntityInformation revisionEntityInformation, jakarta.persistence.EntityManager entityManager) Creates a newEnversRevisionRepositoryImpl
using the givenJpaEntityInformation
,RevisionEntityInformation
andEntityManager
.- Parameters:
entityInformation
- must not be null.revisionEntityInformation
- must not be null.entityManager
- must not be null.
-
-
Method Details
-
findLastChangeRevision
-
findRevision
-
findRevisions
-
findRevisions
-