Failed to instantiate QueryTranslatorFactory: org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory

(Preface: this is not a duplicate of " org.hibernate.HibernateException: could not create an instance of QueryTranslatorFactory: org.hibernate.hql.classic.ClassicQueryTransactionFactory ", because the answer to the question is related to adding an internal to the package that I have).

I follow Netbeans tutorial "Using Hibernate in a Java Swing Application"

And I'm on line Creating Hibernate and POJO mapping files from a database

When I use the Hibernate Mapping Files and POJO from Database wizard, I get the following dialog box:

enter image description here

, / :

Hibernate configuration fails with message:
could not instantiate QueryTranslatorFactoryorg.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory
see message.log for exception details.

:

  • - , ? .xml . , Hibernate, , .
  • , "message.log". ? ?

UPDATE:

+4
1

"internal" factory_class.

<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>

, , , , . , , ,

<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>

... Hibernate 3

:

<property name="hibernate.query.factory_class">org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory</property>

... Hibernate 4.

, Hibernate 4:

enter image description here

, , ....

+5

Source: https://habr.com/ru/post/1536773/


All Articles