| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Hibernate
Revision: 15110
Author: cbredesen
Date: 18 Aug 2008 22:51:06
Changes:HHH-2694 moved schemaExport.drop() before connectionProvider.close()
Files:| ... | ...@@ -878,6 +878,10 @@ | |
| 878 | 878 | |
| 879 | 879 | settings.getRegionFactory().stop(); |
| 880 | 880 | |
| 881 | if ( settings.isAutoDropSchema() ) { | |
| 882 | schemaExport.drop( false, true ); | |
| 883 | } | |
| 884 | ||
| 881 | 885 | try { |
| 882 | 886 | settings.getConnectionProvider().close(); |
| 883 | 887 | } |
| ... | ...@@ -885,10 +889,6 @@ | |
| 885 | 889 | SessionFactoryObjectFactory.removeInstance(uuid, name, properties); |
| 886 | 890 | } |
| 887 | 891 | |
| 888 | if ( settings.isAutoDropSchema() ) { | |
| 889 | schemaExport.drop( false, true ); | |
| 890 | } | |
| 891 | ||
| 892 | 892 | observer.sessionFactoryClosed( this ); |
| 893 | 893 | eventListeners.destroyListeners(); |
| 894 | 894 | } |