R - generic type of the GenericRepository interface.E - generic type of the managed entity.ID - generic type of the primary key
of the entity.public class GenericRepositoryFactoryBean<R extends GenericRepository<E,ID>,E,ID extends Serializable>
extends org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<R,E,ID>
RepositoryFactoryBeanSupport for
GenericRepositoryImpl. In order to use GenericRepository you need to annotate your spring-boot
application as following:
@org.springframework.data.jpa.repository.config.EnableJpaRepositories(repositoryFactoryBeanClass =GenericRepositoryFactoryBean.class)
| Modifier and Type | Class and Description |
|---|---|
private static class |
GenericRepositoryFactoryBean.GenericRepositoryFactory |
| Constructor and Description |
|---|
GenericRepositoryFactoryBean(Class<? extends R> repositoryInterface)
Creates a new
JpaRepositoryFactoryBean for the given repository interface. |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.data.repository.core.support.RepositoryFactorySupport |
createRepositoryFactory(javax.persistence.EntityManager entityManager) |
afterPropertiesSet, doCreateRepositoryFactory, setEntityManager, setEscapeCharacter, setMappingContextcreateRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManagergetEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragmentsprotected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory(javax.persistence.EntityManager entityManager)
createRepositoryFactory in class org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<R extends GenericRepository<E,ID>,E,ID extends Serializable>Copyright © 2014–2019 devon4j-Team. All rights reserved.