Class GenericRevisionedRepositoryFactoryBean<R extends GenericRevisionedRepository<E,ID>,E,ID extends Serializable>
- 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<R,E,ID>
-
- com.devonfw.module.jpa.dataaccess.impl.data.GenericRevisionedRepositoryFactoryBean<R,E,ID>
-
- Type Parameters:
R
- generic type of theGenericRevisionedRepository
interface.E
- generic type of the managedentity
.ID
- generic type of theprimary key
of the entity.
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.FactoryBean<R>
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationEventPublisherAware
,org.springframework.data.repository.core.support.RepositoryFactoryInformation<E,ID>
public class GenericRevisionedRepositoryFactoryBean<R extends GenericRevisionedRepository<E,ID>,E,ID extends Serializable> extends org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<R,E,ID>
RepositoryFactoryBeanSupport
forGenericRepositoryImpl
. In order to useGenericRepository
you need to annotate your spring-boot application as following:@
EnableJpaRepositories
(repositoryFactoryBeanClass =GenericRevisionedRepositoryFactoryBean
.class)- Since:
- 3.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
GenericRevisionedRepositoryFactoryBean.GenericRevisionedRepositoryFactory
-
Constructor Summary
Constructors Constructor Description GenericRevisionedRepositoryFactoryBean(Class<? extends R> repositoryInterface)
Creates a newJpaRepositoryFactoryBean
for the given repository interface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.data.repository.core.support.RepositoryFactorySupport
createRepositoryFactory(javax.persistence.EntityManager entityManager)
-
Methods inherited from class org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean
afterPropertiesSet, doCreateRepositoryFactory, setEntityManager, setEntityPathResolver, setEscapeCharacter, setMappingContext
-
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
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
-
-
-
-
Method Detail
-
createRepositoryFactory
protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory(javax.persistence.EntityManager entityManager)
- Overrides:
createRepositoryFactory
in classorg.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<R extends GenericRevisionedRepository<E,ID>,E,ID extends Serializable>
-
-