public class DynamicJpaRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID>
extends org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<T,S,ID>
implements org.springframework.context.ApplicationContextAware
DynamicJpaRepositoryFactoryBean interface to allow easy setup of
repository factories via Spring configuration.| Constructor and Description |
|---|
DynamicJpaRepositoryFactoryBean(java.lang.Class<? extends T> repositoryInterface)
Creates a new
DynamicJpaRepositoryFactoryBean 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 |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setEntityPathResolver(org.springframework.beans.factory.ObjectProvider<org.springframework.data.querydsl.EntityPathResolver> resolver) |
void |
setEscapeCharacter(char escapeCharacter) |
afterPropertiesSet, doCreateRepositoryFactory, setEntityManager, setMappingContextcreateRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManagergetEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragmentspublic DynamicJpaRepositoryFactoryBean(java.lang.Class<? extends T> repositoryInterface)
DynamicJpaRepositoryFactoryBean for the given repository interface.repositoryInterface - must not be null.protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory(javax.persistence.EntityManager entityManager)
@Autowired public void setEntityPathResolver(org.springframework.beans.factory.ObjectProvider<org.springframework.data.querydsl.EntityPathResolver> resolver)
public void setEscapeCharacter(char escapeCharacter)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException