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:
parent
603e6d4574
commit
11613e206a
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue