public class EnversRevisionRepositoryFactoryBean<T extends org.springframework.data.repository.history.RevisionRepository<S,ID,N>,S,ID extends Serializable,N extends Number & Comparable<N>>
extends org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<T,S,ID>
FactoryBean
creating RevisionRepository
instances.Constructor and Description |
---|
EnversRevisionRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Creates a new
EnversRevisionRepositoryFactoryBean for the given repository interface. |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.data.repository.core.support.RepositoryFactorySupport |
createRepositoryFactory(javax.persistence.EntityManager entityManager) |
void |
setRevisionEntityClass(Class<?> revisionEntityClass)
Configures the revision entity class.
|
afterPropertiesSet, doCreateRepositoryFactory, setEntityManager, setMappingContext
createRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManager
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass
public EnversRevisionRepositoryFactoryBean(Class<? extends T> repositoryInterface)
EnversRevisionRepositoryFactoryBean
for the given repository interface.repositoryInterface
- must not be null.public void setRevisionEntityClass(Class<?> revisionEntityClass)
DefaultRevisionEntity
.revisionEntityClass
- protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory(javax.persistence.EntityManager entityManager)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.