From 11613e206a444f2e1c3d91733655231e82d0d736 Mon Sep 17 00:00:00 2001 From: Chris Bredesen Date: Tue, 19 Aug 2008 02:51:06 +0000 Subject: [PATCH] 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 --- .../main/java/org/hibernate/impl/SessionFactoryImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java b/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java index 28075ce472..b099e61e6f 100644 --- a/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java +++ b/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java @@ -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(); }