public class ConfluenceHibernateConfig
extends com.atlassian.config.db.HibernateConfig
Unfortunately the 'hibernate.query.substitutions' cannot be simply added to the database specific properties files as this would require an upgrade task that changes the configuration for existing installations. While it's easy enough to create an UpgradeTask that changes the configuration the upgrade task would need to reload the spring context as the LocalSessionFactoryBean is already instantiated at this point of the bootstrapping process. This is unfortunately too risky to be added to the release at this stage. See CONF-20081
Modifier and Type | Field and Description |
---|---|
static String |
DIALECT_KEY
Deprecated.
since 7.6.0 use
AvailableSettings.DIALECT instead |
Constructor and Description |
---|
ConfluenceHibernateConfig() |
Modifier and Type | Method and Description |
---|---|
Properties |
getHibernateProperties() |
void |
setH2ClientConfig(com.google.common.base.Function<com.atlassian.h2.ServerView,String> h2ClientConfig)
Deprecated.
since 7.0.1. Use
setH2ClientConfiguration(Function) |
void |
setH2ClientConfiguration(Function<com.atlassian.h2.ServerView,String> h2ClientConfig) |
void |
setH2ServerLifecycle(com.atlassian.h2.ServerLifecycle h2ServerLifecycle) |
protected boolean |
shouldRunH2Server(Properties prop) |
boolean |
supportsIdentityColumns()
Return true if the current database supports identity columns.
|
boolean |
supportsSequences()
Return true if the current database supports sequences.
|
boolean |
uniqueAllowsAnyNullValues() |
boolean |
uniqueAllowsMultipleNullValues() |
booleanRequiresSubstitution, getApplicationConfig, isDb2, isDb2Dialect, isH2, isH2Dialect, isHibernateSetup, isHSQL, isHsqlDialect, isMySql, isMySqlDialect, isOracle, isOracleDialect, isPostgreSql, isPostgreSqlDialect, isSqlServer, isSqlServerDialect, setApplicationConfig
@Deprecated public static final String DIALECT_KEY
AvailableSettings.DIALECT
insteadpublic Properties getHibernateProperties()
getHibernateProperties
in class com.atlassian.config.db.HibernateConfig
protected boolean shouldRunH2Server(Properties prop)
public boolean uniqueAllowsMultipleNullValues()
uniqueAllowsMultipleNullValues
in class com.atlassian.config.db.HibernateConfig
public boolean uniqueAllowsAnyNullValues()
uniqueAllowsAnyNullValues
in class com.atlassian.config.db.HibernateConfig
uniqueAllowsMultipleNullValues()
public boolean supportsIdentityColumns()
public boolean supportsSequences()
public void setH2ServerLifecycle(com.atlassian.h2.ServerLifecycle h2ServerLifecycle)
@Deprecated public void setH2ClientConfig(com.google.common.base.Function<com.atlassian.h2.ServerView,String> h2ClientConfig)
setH2ClientConfiguration(Function)
Copyright © 2003–2020 Atlassian. All rights reserved.