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
  • Constructor Details

    • EnversRevisionRepositoryImpl

      public EnversRevisionRepositoryImpl(JpaEntityInformation<T,?> entityInformation, org.springframework.data.repository.history.support.RevisionEntityInformation revisionEntityInformation, jakarta.persistence.EntityManager entityManager)
      Creates a new EnversRevisionRepositoryImpl using the given JpaEntityInformation, RevisionEntityInformation and EntityManager.
      Parameters:
      entityInformation - must not be null.
      revisionEntityInformation - must not be null.
      entityManager - must not be null.
  • Method Details

    • findLastChangeRevision

      public Optional<org.springframework.data.history.Revision<N,T>> findLastChangeRevision(ID id)
      Specified by:
      findLastChangeRevision in interface org.springframework.data.repository.history.RevisionRepository<T,ID,N extends Number & Comparable<N>>
    • findRevision

      public Optional<org.springframework.data.history.Revision<N,T>> findRevision(ID id, N revisionNumber)
      Specified by:
      findRevision in interface org.springframework.data.repository.history.RevisionRepository<T,ID,N extends Number & Comparable<N>>
    • findRevisions

      public org.springframework.data.history.Revisions<N,T> findRevisions(ID id)
      Specified by:
      findRevisions in interface org.springframework.data.repository.history.RevisionRepository<T,ID,N extends Number & Comparable<N>>
    • findRevisions

      public org.springframework.data.domain.Page<org.springframework.data.history.Revision<N,T>> findRevisions(ID id, org.springframework.data.domain.Pageable pageable)
      Specified by:
      findRevisions in interface org.springframework.data.repository.history.RevisionRepository<T,ID,N extends Number & Comparable<N>>