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

git-svn-id: https://svn.jboss.org/repos/hibernate/core/branches/Branch_3_2@15101 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Chris Bredesen 2008-08-18 18:19:09 +00:00
parent 5e1a485f4e
commit db86871ba0
1 changed files with 4 additions and 4 deletions

View File

@ -799,6 +799,10 @@ public final class SessionFactoryImpl implements SessionFactory, SessionFactoryI
settings.getCacheProvider().stop();
if ( settings.isAutoDropSchema() ) {
schemaExport.drop( false, true );
}
try {
settings.getConnectionProvider().close();
}
@ -806,10 +810,6 @@ public final class SessionFactoryImpl implements SessionFactory, SessionFactoryI
SessionFactoryObjectFactory.removeInstance(uuid, name, properties);
}
if ( settings.isAutoDropSchema() ) {
schemaExport.drop( false, true );
}
}
public void evictEntity(String entityName, Serializable id) throws HibernateException {