Interface HibernateOrmConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitDialect
- Enclosing interface:
HibernateOrmConfigPersistenceUnit
public static interface HibernateOrmConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitDialect
-
Method Summary
Modifier and TypeMethodDescriptiondialect()Name of the Hibernate ORM dialect.default booleanmariadb()Configuration specific to Hibernate's Dialect for MariaDBmssql()Configuration specific to Hibernate's Dialect for Microsoft SQLServermysql()Configuration specific to Hibernate's Dialect for MySQLoracle()Configuration specific to Hibernate's Dialect for OracleDeprecated.
-
Method Details
-
dialect
@WithParentName @ConfigDocDefault("selected automatically for most popular databases") Optional<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String> dialect()Name of the Hibernate ORM dialect. For xref:datasource.adoc#extensions-and-database-drivers-reference[supported databases], this property does not need to be set explicitly: it is selected automatically based on the datasource, and configured using the xref:datasource.adoc#quarkus-datasource_quarkus.datasource.db-version[DB version set on the datasource] to benefit from the best performance and latest features. If your database does not have a corresponding Quarkus extension, you *will* need to set this property explicitly. In that case, keep in mind that the JDBC driver and Hibernate ORM dialect may not work properly in GraalVM native executables. For built-in dialects, the expected value is one of the names in the link:{hibernate-orm-dialect-docs-url}[official list of dialects], *without* the `Dialect` suffix, for example `Cockroach` for `CockroachDialect`. For third-party dialects, the expected value is the fully-qualified class name, for example `com.acme.hibernate.AcmeDbDialect`. -
storageEngine
@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) @Deprecated @WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) Optional<String> storageEngine()Deprecated.The storage engine to use when the dialect supports multiple storage engines. E.g. `MyISAM` or `InnoDB` for MySQL. -
mariadb
MySQLDialectConfig mariadb()Configuration specific to Hibernate's Dialect for MariaDB -
mysql
MySQLDialectConfig mysql()Configuration specific to Hibernate's Dialect for MySQL -
oracle
OracleDialectConfig oracle()Configuration specific to Hibernate's Dialect for Oracle -
mssql
SqlServerDialectConfig mssql()Configuration specific to Hibernate's Dialect for Microsoft SQLServer -
isAnyPropertySet
default boolean isAnyPropertySet()
-
mysql.storage-engine ormariadb.storage-engine instead