T - the type of the repositorypublic class JpaRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
extends org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
FactoryBean interface to allow easy setup of
repository factories via Spring configuration.| Constructor and Description |
|---|
JpaRepositoryFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected org.springframework.data.repository.core.support.RepositoryFactorySupport |
createRepositoryFactory(javax.persistence.EntityManager entityManager)
Returns a
RepositoryFactorySupport. |
protected org.springframework.data.repository.core.support.RepositoryFactorySupport |
doCreateRepositoryFactory() |
void |
setEntityManager(javax.persistence.EntityManager entityManager)
The
EntityManager to be used. |
createRepositoryFactory, setBeanFactory, setTransactionManagergetEntityInformation, getObject, getObjectType, getQueryMethods, getRepositoryInformation, isSingleton, setCustomImplementation, setNamedQueries, setQueryLookupStrategyKey, setRepositoryInterfacepublic void setEntityManager(javax.persistence.EntityManager entityManager)
EntityManager to be used.entityManager - the entityManager to setprotected org.springframework.data.repository.core.support.RepositoryFactorySupport doCreateRepositoryFactory()
protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory(javax.persistence.EntityManager entityManager)
RepositoryFactorySupport.entityManager - public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>Copyright © 2011-2012-2012 SpringSource. All Rights Reserved.