[Dive4elements-commits] [PATCH 2 of 2] Importer/River: Move storeOfficialNumber from parse* to store*, do not store explicitely
Wald Commits
scm-commit at wald.intevation.org
Fri Feb 22 15:43:29 CET 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1361544606 -3600
# Node ID b87e504f916e46d7b1d7d04b5f25dfea483df05a
# Parent 38581d6bfd6f78891f8fd6bbd59e055d52b09d08
Importer/River: Move storeOfficialNumber from parse* to store*, do not store explicitely.
diff -r 38581d6bfd6f -r b87e504f916e flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java Fri Feb 22 15:41:34 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java Fri Feb 22 15:50:06 2013 +0100
@@ -297,7 +297,6 @@
parseWaterlevelDifferences();
parseMeasurementStations();
parseSQRelation();
- storeOfficialNumber();
}
public void parseFloodProtection() throws IOException {
@@ -1083,6 +1082,7 @@
storeWaterlevelDifferences();
storeMeasurementStations();
storeSQRelations();
+ storeOfficialNumber();
}
public void storeWstUnit() {
diff -r 38581d6bfd6f -r b87e504f916e flys-backend/src/main/java/de/intevation/flys/importer/Importer.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/Importer.java Fri Feb 22 15:41:34 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/Importer.java Fri Feb 22 15:50:06 2013 +0100
@@ -175,7 +175,6 @@
for(Map.Entry<String, Long> entry: map.entrySet()) {
if (StringUtil.containsIgnoreCase(entry.getKey(), river.getName())) {
river.setOfficialNumber(entry.getValue());
- river.storeOfficialNumber();
log.debug(river.getName() + " is mapped to bwastr " + entry.getValue());
}
}
More information about the Dive4elements-commits
mailing list