Dialect in Hibernate

Latest Dialects in Hibernate framework.

Dialect in Hibernate

Dialect in Hibernate

In this article I will list down all the dialects available in Hibernate Core framework for using the different databases with the Hibernate ORM. Hibernate is popular ORM tool which is database independent and you can use any supported database with the it.

Hibernate is using Dialects to generate the database specific queries. Dialects are the important concept in Hibernate and it is used to configure the difference database in the hibernate.cfg.xml file.

In this tutorial you lists the different Dialects available in  Hibernate framework.

How to change the database in hibernate.cfg.xml file?

In the file there is a property named "dialect" which is the place to specify your dialect. Here the code which uses the MySQL Dialect:

<property name="dialect">org.hibernate.dialect.MySQLDialect</property>

List of dialect supported in Hibernate

The dialects are packed in the dialect i.e hibernate.dialect. package. Here are the list id dialects supported in Hiberante:

RDBMS Dialect
MySQL5 org.hibernate.dialect.MySQL5Dialect
MySQL5 with InnoDB org.hibernate.dialect.MySQL5InnoDBDialect
MySQL with MyISAM org.hibernate.dialect.MySQLMyISAMDialect
Oracle (any version) org.hibernate.dialect.OracleDialect
Oracle 9i org.hibernate.dialect.Oracle9iDialect
Oracle 10g org.hibernate.dialect.Oracle10gDialect
Oracle 11g org.hibernate.dialect.Oracle10gDialect
DB2 org.hibernate.dialect.DB2Dialect
DB2 AS/400 org.hibernate.dialect.DB2400Dialect
DB2 OS390 org.hibernate.dialect.DB2390Dialect
PostgreSQL org.hibernate.dialect.PostgreSQLDialect
Microsoft SQL Server 2000 org.hibernate.dialect.SQLServerDialect
Microsoft SQL Server 2005 org.hibernate.dialect.SQLServer2005Dialect
Microsoft SQL Server 2008 org.hibernate.dialect.SQLServer2008Dialect
SAP DB org.hibernate.dialect.SAPDBDialect
Informix org.hibernate.dialect.InformixDialect
HypersonicSQL org.hibernate.dialect.HSQLDialect
H2 Database org.hibernate.dialect.H2Dialect
Ingres org.hibernate.dialect.IngresDialect
Progress org.hibernate.dialect.ProgressDialect
Mckoi SQL org.hibernate.dialect.MckoiDialect
Interbase org.hibernate.dialect.InterbaseDialect
Pointbase org.hibernate.dialect.PointbaseDialect
FrontBase org.hibernate.dialect.FrontbaseDialect
Firebird org.hibernate.dialect.FirebirdDialect
Sybase org.hibernate.dialect.SybaseASE15Dialect
Sybase Anywhere org.hibernate.dialect.SybaseAnywhereDialect

Learn more tutorials at Hibernate Tutorials home section.