Hibernate Dialect Error – Hibernate 3.x
If you are using hibernate 3.x and you are getting Dialect error for using this mySql Dialect
net.sf.hibernate.dialect.MySQLDialect
Then change the above line to
org.hibernate.dialect.MySQLDialect
to solve the problem. Actually, with the release of Hibernate 3.x the package net.sf is no longer exist and you have to use the Dialect which has been shifted to the new package.
If you are using Hibernate 3.x with spring then remember to use Hibernate3 package for hibernate objects. The package “hibernate” is for 2.x which use the old package hierarchy.
