Tuesday, November 19, 2013

List of Hibernate SQL Dialects (hibernate.dialect)



Purpose: We all know there are different versions of Oracle... Oracle 11g, Oracle 10g, Oracle9i, Oracle8. The driver we would use would be a common for all of these. But the dialect we use is specific to each one of them, which helps Hibernate in generating optimized queries to those specific versions of database.


Dialect (hibernate.dialect)  is a property of hibernate, which is used to connect to particular database. Hibernate supports many databases. This property makes Hibernate generates the appropriate SQL for the chosen database. This idea makes us to develop database vendor independent application.


Note: This is not mandatory to be given in hibernate.cfg.xml file.


Following is the lists of Dialects provided by hibernate to connect different databases.

Database
Dialect Property
DB2
org.hibernate.dialect.DB2Dialect
DB2 AS/400
org.hibernate.dialect.DB2400Dialect
DB2 OS390
org.hibernate.dialect.DB2390Dialect
PostgreSQL 8.1
org.hibernate.dialect.PostgreSQL81Dialect
PostgreSQL 8.2 and later
org.hibernate.dialect.PostgreSQL82Dialect
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
Sybase ASE 15.5
org.hibernate.dialect.SybaseASE15Dialect
Sybase ASE 15.7
org.hibernate.dialect.SybaseASE157Dialect
Sybase Anywhere
org.hibernate.dialect.SybaseAnywhereDialect
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
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

0 comments: