Class EnversRevisionRepositoryFactoryBean<T extends org.springframework.data.repository.history.RevisionRepository<S,ID,N>,S,ID,N extends Number & Comparable<N>>

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<T,S,ID>
org.springframework.data.envers.repository.support.EnversRevisionRepositoryFactoryBean<T,S,ID,N>
All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, FactoryBean<T>, InitializingBean, ApplicationEventPublisherAware, org.springframework.data.repository.core.support.RepositoryFactoryInformation<S,ID>

public class EnversRevisionRepositoryFactoryBean<T extends org.springframework.data.repository.history.RevisionRepository<S,ID,N>,S,ID,N extends Number & Comparable<N>> extends JpaRepositoryFactoryBean<T,S,ID>
FactoryBean creating RevisionRepository instances.
Author:
Oliver Gierke, Michael Igler
  • Constructor Details

    • EnversRevisionRepositoryFactoryBean

      public EnversRevisionRepositoryFactoryBean(Class<? extends T> repositoryInterface)
      Creates a new EnversRevisionRepositoryFactoryBean for the given repository interface.
      Parameters:
      repositoryInterface - must not be null.
  • Method Details

    • setRevisionEntityClass

      public void setRevisionEntityClass(Class<?> revisionEntityClass)
      Configures the revision entity class. Will default to DefaultRevisionEntity.
      Parameters:
      revisionEntityClass -
    • createRepositoryFactory

      protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory(jakarta.persistence.EntityManager entityManager)
      Description copied from class: JpaRepositoryFactoryBean
      Returns a RepositoryFactorySupport.
      Overrides:
      createRepositoryFactory in class JpaRepositoryFactoryBean<T extends org.springframework.data.repository.history.RevisionRepository<S,ID,N>,S,ID>