Class GenericRepositoryFactoryBean<R extends GenericRepository<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.GenericRepositoryFactoryBean<R,E,ID>
-
- Type Parameters:
R- generic type of theGenericRepositoryinterface.E- generic type of the managedentity.ID- generic type of theprimary keyof 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 GenericRepositoryFactoryBean<R extends GenericRepository<E,ID>,E,ID extends Serializable> extends org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<R,E,ID>RepositoryFactoryBeanSupportforGenericRepositoryImpl. In order to useGenericRepositoryyou need to annotate your spring-boot application as following:@
EnableJpaRepositories(repositoryFactoryBeanClass =GenericRepositoryFactoryBean.class)- Since:
- 3.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classGenericRepositoryFactoryBean.GenericRepositoryFactory
-
Constructor Summary
Constructors Constructor Description GenericRepositoryFactoryBean(Class<? extends R> repositoryInterface)Creates a newJpaRepositoryFactoryBeanfor the given repository interface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.data.repository.core.support.RepositoryFactorySupportcreateRepositoryFactory(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:
createRepositoryFactoryin classorg.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<R extends GenericRepository<E,ID>,E,ID extends Serializable>
-
-