# HG changeset patch # User Sascha L. Teichmann # Date 1304901493 0 # Node ID c6889097f81fa1c68083c60d56266a963e3cda62 # Parent 04d449f7f0c9733fa616f0d397d8c7653419d0a5 Importer: Fix silly bug and set Hibernate session flushing back to auto. flys-backend/trunk@1856 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 04d449f7f0c9 -r c6889097f81f flys-backend/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/importer/ImporterSession.java: diff -r 04d449f7f0c9 -r c6889097f81f flys-backend/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>() { @@ -169,7 +169,7 @@ Range range = ranges.get(key); - if (ranges != null) { + if (range != null) { return range; }