org.hibernate.HibernateException: could not instantiate QueryTranslatorFactory: org.hibernate.hql.classic.ClassicQueryTransactionFactory

后端 未结 4 582
温柔的废话
温柔的废话 2020-12-09 22:28

why this exception is occure when i run query from hql editor

org.hibernate.HibernateException: could not instantiate QueryTranslatorFactory: org.hibernate.hql.cla         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 22:49

    I had the same exception when moved from hibernate 3 to hibernate 4 but when I tried to change the

    org.hibernate.hql.classic.ClassicQueryTranslatorFactory
    

    with

    org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory
    

    it worked for me. I hope that help you.

提交回复
热议问题