Monday, August 1, 2016

What is dialect class in Hibernate?


§  To connect to any database with hibernate, we need to specify the SQL dialect class in hibernate.cfg.xml
     Ex: To connect to oracle database we need to specify oracle dialect class in configuration xml as below.
 org.hibernate.dialect.Oracle10gDialect

§  Dialect class is java class, which contains code to map between java language data type database data type.
§  All Dialect classes extend the Dialect abstract class.
§  Dialect is used to convert HQL statements to data base specific statements.

Hibernate SQL Dialects:

RDBMS
Dialect
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
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


No comments:

Post a Comment