why this exception is occure when i run query from hql editor
org.hibernate.HibernateException: could not instantiate QueryTranslatorFactory: org.hibernate.hql.cla
There is minor change in new APIS. pls replace property value with
org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory.
NOTE: there is new package called 'internal' hierarchy introduced.
I had the same exception when moved from hibernate 3 to hibernate 4 but when I tried to change the
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
with
<property name="hibernate.query.factory_class">org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory</property>
it worked for me. I hope that help you.
The correct name is
org.hibernate.hql.classic.ClassicQueryTranslactorFactory
Pls note that 'l' is missing in the previous comment.
The correct name of classic query translator factory is org.hibernate.hql.classic.ClassicQueryTransactorFactory, use it in properties instead of the incorrect one (org.hibernate.hql.classic.ClassicQueryTransactionFactory).