changeset 487:cf513cbe88c3

Importer: forgot to fetch time interval peer flys-backend/trunk@1815 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 03 May 2011 17:40:02 +0000 (2011-05-03)
parents 8ea09ec7f0c8
children b316d2106598
files flys-backend/ChangeLog flys-backend/src/main/java/de/intevation/flys/importer/ImportTimeInterval.java
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/ChangeLog	Tue May 03 17:34:52 2011 +0000
+++ b/flys-backend/ChangeLog	Tue May 03 17:40:02 2011 +0000
@@ -1,3 +1,8 @@
+2011-05-03	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/importer/ImportTimeInterval.java:
+	  Forgot to fetch peer from result set.
+
 2011-05-03	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/importer/ImportTimeInterval.java:
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportTimeInterval.java	Tue May 03 17:34:52 2011 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportTimeInterval.java	Tue May 03 17:40:02 2011 +0000
@@ -51,6 +51,9 @@
                 peer = new TimeInterval(startTime, stopTime);
                 session.save(peer);
             }
+            else {
+                peer = intervals.get(0);
+            }
         }
         return peer;
     }

http://dive4elements.wald.intevation.org