Alphalearningschool
        

<<< Prev

Next >>>

Up
Hibernate Dialects

SQL (Structure Query Language) Hibernate Dialects : It specifies the type of database used in hibernate so that hibernate generates appropriate type of sql statements. For connection of any database we need to provide the configuration of sql dialect.

Syntax :

<propertyname="dialect">org.hibernate.dialect.Oracle9Dialect</property>

There are many Dialects classes defined for RDBMS in the org.hibernate.dialect package.

Example : MySQL        - org.hibernate.dialect.MySQLDialect.

                 Oracle10g    -org.hibernate.dialect.Oracle10gDialect.