Author: cbredesen
Date: 2008-08-18 14:19:09 -0400 (Mon, 18 Aug 2008)
New Revision: 15101
Modified:
core/branches/Branch_3_2/src/org/hibernate/impl/SessionFactoryImpl.java
Log:
HHH-2694 moved connectionProvider.close() after schemaExport.drop()
Modified: core/branches/Branch_3_2/src/org/hibernate/impl/SessionFactoryImpl.java
===================================================================
--- core/branches/Branch_3_2/src/org/hibernate/impl/SessionFactoryImpl.java 2008-08-18
17:59:24 UTC (rev 15100)
+++ core/branches/Branch_3_2/src/org/hibernate/impl/SessionFactoryImpl.java 2008-08-18
18:19:09 UTC (rev 15101)
@@ -799,6 +799,10 @@
settings.getCacheProvider().stop();
+ if ( settings.isAutoDropSchema() ) {
+ schemaExport.drop( false, true );
+ }
+
try {
settings.getConnectionProvider().close();
}
@@ -806,10 +810,6 @@
SessionFactoryObjectFactory.removeInstance(uuid, name, properties);
}
- if ( settings.isAutoDropSchema() ) {
- schemaExport.drop( false, true );
- }
-
}
public void evictEntity(String entityName, Serializable id) throws HibernateException {