public class JPAPropertiesPersistenceUnitPostProcessor 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:
Constructor and Description |
---|
JPAPropertiesPersistenceUnitPostProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
populatePresetProperties() |
void |
postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo pui) |
void |
setPersistenceUnitProperties(Map<String,String> properties) |
protected CompositeAutoImportSql compositeAutoImportSql
@Value(value="${blPU.hibernate.hbm2ddl.auto}") protected String blPUHibernateHbm2ddlAuto
@Value(value="${blPU.hibernate.dialect}") protected String blPUHibernateDialect
@Value(value="${blPU.hibernate.show_sql}") protected String blPUHibernateShow_sql
@Value(value="${blPU.hibernate.cache.use_second_level_cache}") protected String blPUHibernateCacheUse_second_level_cache
@Value(value="${blPU.hibernate.cache.use_query_cache}") protected String blPUHibernateCacheUse_query_cache
@Value(value="${blPU.hibernate.hbm2ddl.import_files}") protected String blPUHibernateHbm2ddlImport_files
@Value(value="${blPU.hibernate.hbm2ddl.import_files_sql_extractor}") protected String blPUHibernateHbm2ddlImport_files_sql_extractor
@Value(value="${blCMSStorage.hibernate.hbm2ddl.auto}") protected String blCMSStorageHibernateHbm2ddlAuto
@Value(value="${blCMSStorage.hibernate.dialect}") protected String blCMSStorageHibernateDialect
@Value(value="${blCMSStorage.hibernate.show_sql}") protected String blCMSStorageHibernateShow_sql
@Value(value="${blCMSStorage.hibernate.cache.use_second_level_cache}") protected String blCMSStorageHibernateCacheUse_second_level_cache
@Value(value="${blCMSStorage.hibernate.cache.use_query_cache}") protected String blCMSStorageHibernateCacheUse_query_cache
@Value(value="${blCMSStorage.hibernate.hbm2ddl.import_files}") protected String blCMSStorageHibernateHbm2ddlImport_files
@Value(value="${blCMSStorage.hibernate.hbm2ddl.import_files_sql_extractor}") protected String blCMSStorageHibernateHbm2ddlImport_files_sql_extractor
@Value(value="${blSecurePU.hibernate.hbm2ddl.auto}") protected String blSecurePUHibernateHbm2ddlAuto
@Value(value="${blSecurePU.hibernate.dialect}") protected String blSecurePUHibernateDialect
@Value(value="${blSecurePU.hibernate.show_sql}") protected String blSecurePUHibernateShow_sql
@Value(value="${blSecurePU.hibernate.cache.use_second_level_cache}") protected String blSecurePUHibernateCacheUse_second_level_cache
@Value(value="${blSecurePU.hibernate.cache.use_query_cache}") protected String blSecurePUHibernateCacheUse_query_cache
@Value(value="${blSecurePU.hibernate.hbm2ddl.import_files}") protected String blSecurePUHibernateHbm2ddlImport_files
@Value(value="${blSecurePU.hibernate.hbm2ddl.import_files_sql_extractor}") protected String blSecurePUHibernateHbm2ddlImport_files_sql_extractor
public JPAPropertiesPersistenceUnitPostProcessor()
@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.