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:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean, org.springframework.context.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
  • Field Summary

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    EnversRevisionRepositoryFactoryBean(Class<? extends T> repositoryInterface)
    Creates a new EnversRevisionRepositoryFactoryBean for the given repository interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.data.repository.core.support.RepositoryFactorySupport
    createRepositoryFactory(jakarta.persistence.EntityManager entityManager)
    Returns a RepositoryFactorySupport.
    void
    setRevisionEntityClass(Class<?> revisionEntityClass)
    Configures the revision entity class.

    Methods inherited from class org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport

    createRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManager

    Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport

    addRepositoryFactoryCustomizer, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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>