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:
parent
5e1a485f4e
commit
db86871ba0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue