-
1. Re: Hibernate Tools 5.4.4 Hibernate 3.5 - Can’t open connection
jrmarchio Jun 24, 2019 10:42 AM (in response to jrmarchio)Trying to debug the code, I found that no matter which hibernate target version is selected, code always calls a SessionFactoryImpl from hibernate 4.0-Final, which could be the reason why queries start working selecting hibernate version 4.3 or higher (4.3 is the lowest selectable version higher than 4.0).
Could anybody who knows this project check this?
Thank you
-
2. Re: Hibernate Tools 5.4.4 Hibernate 3.5 - Can’t open connection
jkopriva Jun 27, 2019 12:53 AM (in response to jrmarchio)Hi Juan,
Thank you for reporting this issue. I have created JIRA: [JBIDE-26698] Hibernate 3.5 - Can’t open connection - JBoss Issue Tracker , you can track this issue there.
I will try to get in touch with developers.
Once again thank you for reporting!
Josef
-
3. Re: Hibernate Tools 5.4.4 Hibernate 3.5 - Can’t open connection
jrmarchio Jul 9, 2019 8:39 AM (in response to jkopriva)I managed to find the cause of the problem, which is a missing org.hibernate.eclipse dependency for hibernate runtimes 3.5, 3.6 and 4.0, which causes that BundleLoader.findClassInternal() when calling findRequiredSource(“org.hibernate.console”, null) doesn’t get any source thus driver class doesn’t get loaded.
The fix is to add org.hibernate.eclipse dependency on manifests for projects:
orm\plugin\runtime\org.jboss.tools.hibernate.runtime.v_3_5
orm\plugin\runtime\org.jboss.tools.hibernate.runtime.v_3_6 and
orm\plugin\runtime\org.jboss.tools.hibernate.runtime.v_4_0
I can’t generate a pull request because I can’t build the project and thus neither run tests, as it doesn’t build as indicated in the project readme file, and other build documents (in jbosstools/devdoc) are marked as obsolete.
I’m posting here and will update the bug hoping for some project developer to apply the fix.
Regards