This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 190297 - visual editor of cfg.xml offers incorrect property for hibernate.query.factory_class
Summary: visual editor of cfg.xml offers incorrect property for hibernate.query.factor...
Status: RESOLVED DUPLICATE of bug 192027
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 7.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-10 16:10 UTC by Kenneth Ganfield
Modified: 2010-12-06 11:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the Dialog (18.12 KB, image/png)
2010-10-12 18:35 UTC, oldmangloom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2010-09-10 16:10:54 UTC
When editing hibernate.cfg.xml file in visual editor, there is option under Miscellaneous properties section to add the hibernate.query.factory_class.

The value option available in the dropdown list for the property appears to be incorrect. Choosing the value results in the following:

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

The following value throws an exception: org.hibernate.hql.classic.ClassicQueryTransactionFactory

I think maybe the value in the list should be:
org.hibernate.hql.classic.ClassicQueryTranslatorFactory

which will result in the following property in xml view and which does not throw an exception:

<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
Comment 1 oldmangloom 2010-10-12 18:35:41 UTC
Created attachment 102374 [details]
Screenshot of the Dialog

Screenshot of the Edit-Dialog of the "Miscellaneous Property" "hibernate.query.factory_class". In the Drop-Down-Box is the wrong Value "org.hibernate.hql.classic.ClassicQueryTransactionFactory" and in Value-Field the correct (manually entered) Value of "org.hibernate.hql.classic.ClassicQueryTranslatorFactory".
Comment 2 oldmangloom 2010-10-17 19:58:16 UTC
I think the Bug is in File:

hibernate/src/org/netbeans/modules/hibernate/cfg/HibernateCfgProperties.java

in Line 179 (it's the second Member of the String-Array QUERY_FACTORY_CLASS).
Comment 3 Kenneth Ganfield 2010-12-06 11:31:28 UTC
This appears to be now fixed.
Feel free to close
Comment 4 Sergey Petrov 2010-12-06 11:46:20 UTC

*** This bug has been marked as a duplicate of bug 192027 ***