public class KradEclipseLinkEntityManagerFactoryBean extends KradEntityManagerFactoryBean
EntityManagerFactory
factory bean which can be used to configure an
EclipseLink persistence unit using JPA.
This class inherits the behavior from KradEntityManagerFactoryBean
but adds the following:
JpaVendorAdapter
to EclipseLinkJpaVendorAdapter
PersistenceUnitProperties.TARGET_SERVER
to JtaTransactionController
which allows for
EclipseLink integration with JTA.PersistenceUnitProperties.CACHE_SHARED_DEFAULT
by defaultGLOBAL_JPA_PROPERTY_PREFIX, JPA_PROPERTY_PREFIX
Constructor and Description |
---|
KradEclipseLinkEntityManagerFactoryBean()
Creates a KRAD-managed
EntityManagerFactory factory bean. |
Modifier and Type | Method and Description |
---|---|
protected void |
loadCustomJpaDefaults(Map<String,String> jpaProperties)
Allows for loading of custom JPA defaults by subclasses, default implementation does nothing so subclasses need
not call super.loadCustomJpaDefaults.
|
afterPropertiesSet, assemblePersistenceUnitPostProcessors, constructPersistenceUnitJpaPropertyPrefix, createInternalFactoryBean, createPersistenceUnitManager, destroy, getBeanClassLoader, getDataSource, getEntityManagerInterface, getInternalFactoryBean, getJpaDialect, getJpaPropertyMap, getManagedClassNames, getNativeEntityManagerFactory, getObject, getObjectType, getPersistenceProvider, getPersistenceUnitInfo, getPersistenceUnitManager, getPersistenceUnitName, getPersistenceUnitPostProcessors, isSingleton, loadGlobalJpaDefaults, loadPersistenceUnitJpaDefaults, setBeanClassLoader, setBeanFactory, setBeanName, setDataSource, setEntityManagerFactoryInterface, setEntityManagerInterface, setJpaDialect, setJpaProperties, setJpaPropertyMap, setJpaVendorAdapter, setJtaDataSource, setLoadTimeWeaver, setManagedClassNames, setMappingResources, setPackagesToScan, setPersistenceProvider, setPersistenceUnitName, setPersistenceUnitPostProcessors, setResourceLoader, translateExceptionIfPossible
public KradEclipseLinkEntityManagerFactoryBean()
EntityManagerFactory
factory bean.protected void loadCustomJpaDefaults(Map<String,String> jpaProperties)
Subclasses are free to override this method as they see fit. This method is executed after other defaults are loaded. A reference to the current Map of JPA properties is passed. Subclasses should take care if removing or overwriting any of the values which already exist in the given Map.
loadCustomJpaDefaults
in class KradEntityManagerFactoryBean
jpaProperties
- the current Map of JPA property defaults.Copyright © 2005–2016 The Kuali Foundation. All rights reserved.