HHH-2694 moved schemaExport.drop() before connectionProvider.close()

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15110 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Chris Bredesen 2008-08-19 02:51:06 +00:00
parent 603e6d4574
commit 11613e206a
1 changed files with 4 additions and 4 deletions

View File

@ -878,6 +878,10 @@ public final class SessionFactoryImpl implements SessionFactory, SessionFactoryI
settings.getRegionFactory().stop();
if ( settings.isAutoDropSchema() ) {
schemaExport.drop( false, true );
}
try {
settings.getConnectionProvider().close();
}
@ -885,10 +889,6 @@ public final class SessionFactoryImpl implements SessionFactory, SessionFactoryI
SessionFactoryObjectFactory.removeInstance(uuid, name, properties);
}
if ( settings.isAutoDropSchema() ) {
schemaExport.drop( false, true );
}
observer.sessionFactoryClosed( this );
eventListeners.destroyListeners();
}