public class JobsEventsJPAPropertiesPersistenceUnitPostProcessor extends Object implements org.springframework.orm.jpa.persistenceunit.PersistenceUnitPostProcessor
RuntimeEnvironmentPropertiesConfigurer
. The keys will be the same in each environment, but the values
would be defined the environment-specific properties files. If you want the property to be added only to certain environments,
add the value "null" to the properties file. For example:
Modifier and Type | Field and Description |
---|---|
protected String |
blEventPUHibernateCacheUse_query_cache |
protected String |
blEventPUHibernateCacheUse_second_level_cache |
protected String |
blEventPUHibernateDialect |
protected String |
blEventPUHibernateHbm2ddlAuto |
protected String |
blEventPUHibernateHbm2ddlImport_files |
protected String |
blEventPUHibernateHbm2ddlImport_files_sql_extractor |
protected String |
blEventPUHibernateShow_sql |
protected Map<String,String> |
overrideProperties |
protected Map<String,String> |
persistenceUnitProperties |
Constructor and Description |
---|
JobsEventsJPAPropertiesPersistenceUnitPostProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
populatePresetProperties() |
void |
postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo pui) |
void |
setPersistenceUnitProperties(Map<String,String> properties) |
@Value(value="${blEventPU.hibernate.hbm2ddl.auto}") protected String blEventPUHibernateHbm2ddlAuto
@Value(value="${blEventPU.hibernate.dialect}") protected String blEventPUHibernateDialect
@Value(value="${blEventPU.hibernate.show_sql}") protected String blEventPUHibernateShow_sql
@Value(value="${blEventPU.hibernate.cache.use_second_level_cache}") protected String blEventPUHibernateCacheUse_second_level_cache
@Value(value="${blEventPU.hibernate.cache.use_query_cache}") protected String blEventPUHibernateCacheUse_query_cache
@Value(value="${blEventPU.hibernate.hbm2ddl.import_files}") protected String blEventPUHibernateHbm2ddlImport_files
@Value(value="${blEventPU.hibernate.hbm2ddl.import_files_sql_extractor}") protected String blEventPUHibernateHbm2ddlImport_files_sql_extractor
public JobsEventsJPAPropertiesPersistenceUnitPostProcessor()
@PostConstruct public void populatePresetProperties()
public void postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo pui)
postProcessPersistenceUnitInfo
in interface org.springframework.orm.jpa.persistenceunit.PersistenceUnitPostProcessor
Copyright © 2019. All rights reserved.