changeset 2384:385170ff7b34

River: (fix) Renamed function which is not a getter. flys-backend/trunk@3911 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 06 Feb 2012 07:36:51 +0000
parents 6605dcd6745f
children 83abe19d4f40
files flys-backend/ChangeLog flys-backend/src/main/java/de/intevation/flys/model/River.java
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/ChangeLog	Fri Feb 03 15:25:18 2012 +0000
+++ b/flys-backend/ChangeLog	Mon Feb 06 07:36:51 2012 +0000
@@ -1,4 +1,11 @@
-2012-01-18	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+2012-02-03  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/model/River.java
+	  (getGaugeDatumsKMs,queryGaugeDatumsKMs): renamed to avoid hibernate
+	  running into trouble finding db-mapping for type Map for
+	  what looks like a 'getter' of GaugeDatumsKMs.
+
+2012-02-03	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/model/River.java(getGaugeDatumsKMs):
 	  New method to build a map of gauge stattion km to 
--- a/flys-backend/src/main/java/de/intevation/flys/model/River.java	Fri Feb 03 15:25:18 2012 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/model/River.java	Mon Feb 06 07:36:51 2012 +0000
@@ -274,7 +274,7 @@
         return minmax;
     }
 
-    public Map<Double, Double> getGaugeDatumsKMs() {
+    public Map<Double, Double> queryGaugeDatumsKMs() {
         List<Gauge> gauges = getGauges();
         Map result = new TreeMap<Double, Double>(KM_CMP);
 

http://dive4elements.wald.intevation.org