changeset 502:c6889097f81f

Importer: Fix silly bug and set Hibernate session flushing back to auto. flys-backend/trunk@1856 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 09 May 2011 00:38:13 +0000
parents 04d449f7f0c9
children bcc18293a547
files flys-backend/ChangeLog flys-backend/src/main/java/de/intevation/flys/importer/ImporterSession.java
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/ChangeLog	Mon May 09 00:15:45 2011 +0000
+++ b/flys-backend/ChangeLog	Mon May 09 00:38:13 2011 +0000
@@ -1,3 +1,9 @@
+2011-05-09	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/importer/ImporterSession.java:
+	  Fixed silly bug. Set flush mode back to auto because
+	  manual flushing causes some undetermined problems.
+
 2011-05-09	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/importer/ImporterSession.java:
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImporterSession.java	Mon May 09 00:15:45 2011 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImporterSession.java	Mon May 09 00:38:13 2011 +0000
@@ -55,7 +55,7 @@
         SessionFactory sessionFactory =
             SessionFactoryProvider.createSessionFactory();
         databaseSession = sessionFactory.openSession();
-        databaseSession.setFlushMode(FlushMode.MANUAL);
+        //databaseSession.setFlushMode(FlushMode.MANUAL);
 
         wstColumnValues =
             new LinkedHashMap<Integer, Map<ValueKey, WstColumnValue>>() {
@@ -169,7 +169,7 @@
 
         Range range = ranges.get(key);
 
-        if (ranges != null) {
+        if (range != null) {
             return range;
         }
 

http://dive4elements.wald.intevation.org