public class JpaHibernateConfigProcessor extends HibernateConfigProcessor
HibernateConfigProcessor that can be used with a Hibernate-provided JPA EntityManagerFactory
instead of the native Hibernate SessionFactory.HibernateConfigProcessorhibernateConfiguredlog| Constructor and Description |
|---|
JpaHibernateConfigProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
Sets the Hibernate-provided
EntityManagerFactory to be used for reading type metadata. |
configureConverters, extractHibernateMetadata, findTypesToRegister, getBeanFactory, setBeanFactory, setSessionFactoryprocessAfterStartup, processBeforeStartup, registerAmfProxies, registerPropertyProxy, setConversionService, setUseDirectFieldAccesspublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class HibernateConfigProcessorExceptionpublic void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
EntityManagerFactory to be used for reading type metadata. If this property is not
explicitly set, all available EntityManagerFactory instances will be retrieved from the containing
BeanFactory and have their type metadata extracted for use in HibernateConfigProcessor.findTypesToRegister()entityManagerFactory - the entity manager factory from which to read metadataCopyright © 2014. All rights reserved.