public class JpaHibernateConfigProcessor extends HibernateConfigProcessor
HibernateConfigProcessor
that can be used with a Hibernate-provided JPA EntityManagerFactory
instead of the native Hibernate SessionFactory
.HibernateConfigProcessor
hibernateConfigured
log
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, setSessionFactory
processAfterStartup, processBeforeStartup, registerAmfProxies, registerPropertyProxy, setConversionService, setUseDirectFieldAccess
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class HibernateConfigProcessor
Exception
public 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.