[jbosstools-issues] [JBoss JIRA] (JBIDE-11226) hibernate dynamic sql preview not working - stating session factory is not created when it is

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Mon Mar 12 07:18:47 EDT 2012


     [ https://issues.jboss.org/browse/JBIDE-11226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Geraskov resolved JBIDE-11226.
-------------------------------------

    Resolution: Done


The dynamic sql preview still used console configuration's session factory instead of our hibernate extension
                
> hibernate dynamic sql preview not working - stating session factory is not created when it is
> ---------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-11226
>                 URL: https://issues.jboss.org/browse/JBIDE-11226
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: hibernate
>    Affects Versions: 3.3.0.Beta1
>            Reporter: Max Rydahl Andersen
>            Assignee: Dmitry Geraskov
>            Priority: Critical
>             Fix For: 3.3.0.Beta2
>
>
> EXECUTE: have a hibernate console config, hibernate 3.5 (haven't tried others)
> EXECUTE: do a query in HQL editor
> ASSERT: entities are shown in query results
> EXECUTE: select hibernate dynamic sql preview view
> ASSERT: it will show the corresponding sql
> CURRENT FAIL: says session factory is not open even though one is for the queries
> EXECUTE: expand the sesson factory node in console config and see it build
> ASSERT: no errors and now dynamic sql preview should work
> CURRENT FAIL: session factory is built but getting this in error log:
> org.hibernate.console.ext.HibernateException: Factory was not closed before attempt to build a new Factory
> 	at org.jboss.tools.hibernate3_5.HibernateExtension3_5$1.execute(HibernateExtension3_5.java:135)
> 	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
> 	at org.jboss.tools.hibernate3_5.HibernateExtension3_5.execute(HibernateExtension3_5.java:240)
> 	at org.jboss.tools.hibernate3_5.HibernateExtension3_5.buildSessionFactory(HibernateExtension3_5.java:132)
> 	at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:273)
> 	at org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:43)
> 	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)
> 	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
> 	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> and the sql preview is still not working.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list