Note that there are some explanatory texts on larger screens.

plurals
  1. PODerby gets stuck closing?
    text
    copied!<p>I've got unit tests (in maven) that use derby.</p> <p>At the end of the test run, there is a very long pause, with these log messages before the pause.</p> <pre>INFO: Closing Hibernate SessionFactory Nov 16, 2009 8:30:31 PM org.hibernate.impl.SessionFactoryImpl close INFO: closing Nov 16, 2009 8:30:31 PM org.hibernate.tool.hbm2ddl.SchemaExport execute INFO: Running hbm2ddl schema export Nov 16, 2009 8:30:31 PM org.hibernate.tool.hbm2ddl.SchemaExport execute INFO: exporting generated schema to database</pre> <p>Hibernate config:</p> <pre><code>&lt;hibernate-configuration&gt; &lt;session-factory&gt; &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.DerbyDialect&lt;/property&gt; &lt;property name="hbm2ddl.auto"&gt;create-drop&lt;/property&gt; &lt;property name="show_sql"&gt;false&lt;/property&gt; &lt;/session-factory&gt; &lt;/hibernate-configuration&gt; </code></pre> <p>referenced from:</p> <pre><code>&lt;bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"&gt; &lt;!-- data source elsewhere --&gt; &lt;property name="dataSource" ref="dataSource" /&gt; &lt;property name="mappingResources"&gt; &lt;list&gt; &lt;value&gt;com/basistech/configdb/dao/Gazetteer.hbm.xml&lt;/value&gt; &lt;value&gt;com/basistech/configdb/dao/FileGazetteer.hbm.xml&lt;/value&gt; &lt;value&gt;com/basistech/configdb/dao/Regexpset.hbm.xml&lt;/value&gt; &lt;value&gt;com/basistech/configdb/dao/Redactjoiner.hbm.xml&lt;/value&gt; &lt;value&gt;com/basistech/configdb/dao/Misc.hbm.xml&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; &lt;property name="configLocation" value="classpath:com/basistech/configdb/dao/hibernate.xml"/&gt; </code></pre> <p></p> <p>and finally maven:</p> <pre><code> &lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;hibernate3-maven-plugin&lt;/artifactId&gt; &lt;version&gt;2.2&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;codegen&lt;/id&gt; &lt;goals&gt; &lt;goal&gt;hbm2java&lt;/goal&gt; &lt;/goals&gt; &lt;phase&gt;generate-sources&lt;/phase&gt; &lt;configuration&gt; &lt;components&gt; &lt;component&gt; &lt;name&gt;hbm2java&lt;/name&gt; &lt;/component&gt; &lt;/components&gt; &lt;componentProperties&gt; &lt;configurationfile&gt;src/main/hibernate/codegen-hibernate.xml&lt;/configurationfile&gt; &lt;/componentProperties&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload