org.hibernate.cfg.DialectSpecificSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beangle-hibernate-core Show documentation
Show all versions of beangle-hibernate-core Show documentation
Hibernate Orm Core Shade,Support Scala Collection
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.cfg;
/**
* Settings used as fallback to configure aspects of specific {@link org.hibernate.dialect.Dialect}s
* when the boot process does not have access to a {@link java.sql.DatabaseMetaData} object or
* its underlying JDBC {@link java.sql.Connection}.
*
* @author Marco Belladelli
*/
public interface DialectSpecificSettings {
/**
* Specifies whether this database is running on an Autonomous Database Cloud Service.
*
* @settingDefault {@code false}
*/
public static final String ORACLE_AUTONOMOUS_DATABASE = "hibernate.dialect.oracle.is_autonomous";
/**
* Specifies whether this database's {@code MAX_STRING_SIZE} is set to {@code EXTENDED}.
*
* @settingDefault {@code false}
*/
public static final String ORACLE_EXTENDED_STRING_SIZE = "hibernate.dialect.oracle.extended_string_size";
/**
* Specifies whether this database's {@code ansinull} setting is enabled.
*
* @settingDefault {@code false}
*/
public static final String SYBASE_ANSI_NULL = "hibernate.dialect.sybase.extended_string_size";
/**
* Specifies the bytes per character to use based on the database's configured
* charset.
*
* @settingDefault {@code 4}
*/
public static final String MYSQL_BYTES_PER_CHARACTER = "hibernate.dialect.mysql.bytes_per_character";
/**
* Specifies whether the {@code NO_BACKSLASH_ESCAPES} sql mode is enabled.
*
* @settingDefault {@code false}
*/
public static final String MYSQL_NO_BACKSLASH_ESCAPES = "hibernate.dialect.mysql.no_backslash_escapes";
/**
* Specifies a custom CockroachDB version string. The expected format of the string is
* the one returned from the {@code version()} function, e.g.:
* {@code "CockroachDB CCL v23.1.8 (x86_64-pc-linux-gnu, built 2023/08/04 18:11:44, go1.19.10)"}
*/
public static final String COCKROACH_VERSION_STRING = "hibernate.dialect.cockroach.version_string";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy