Author: dgeraskov
Date: 2012-01-17 03:46:57 -0500 (Tue, 17 Jan 2012)
New Revision: 37889
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/ExecuteQueryAction.java
Log:
https://issues.jboss.org/browse/JBIDE-10649
Build session factory in HibernateExtension instead of in ConsoleConfiguration
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/ExecuteQueryAction.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/ExecuteQueryAction.java 2012-01-17
08:16:44 UTC (rev 37888)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/ExecuteQueryAction.java 2012-01-17
08:46:57 UTC (rev 37889)
@@ -76,7 +76,7 @@
}
}
if (cfg.getHibernateExtension().hasConfiguration()) {
- cfg.buildSessionFactory();
+ cfg.getHibernateExtension().buildSessionFactory();
queryEditor.executeQuery(cfg);
}
}