Mercurial > dive4elements > river
changeset 2148:345a236f7075
Made HYKFactory.Zone Serializable (and thus cachable).
flys-artifacts/trunk@3730 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 20 Jan 2012 08:30:07 +0000 |
parents | 79044646f4eb |
children | b5f3b29544ea |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HYKFactory.java |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Fri Jan 20 08:29:24 2012 +0000 +++ b/flys-artifacts/ChangeLog Fri Jan 20 08:30:07 2012 +0000 @@ -1,3 +1,8 @@ +2012-01-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/model/HYKFactory.java: + Made HYKFactory.Zone Serializable. + 2012-01-20 Felix Wolfsteller <felix.wolfsteller@intevation.de> * src/main/java/de/intevation/flys/artifacts/HYKArtifact.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HYKFactory.java Fri Jan 20 08:29:24 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HYKFactory.java Fri Jan 20 08:30:07 2012 +0000 @@ -5,6 +5,8 @@ import java.math.BigDecimal; +import java.io.Serializable; + import net.sf.ehcache.Cache; import net.sf.ehcache.Element; @@ -110,7 +112,7 @@ " order by entry.km asc"); query.setParameter("hykid", hykid); query.setParameter("km", new BigDecimal(km)); - logger.debug("Big km " + new BigDecimal(km)); + List<HYKFormation> forms = query.list(); List<Zone> zones = new ArrayList<Zone>(); @@ -131,7 +133,7 @@ } /** Labelled section. */ - public static class Zone { + public static class Zone implements Serializable { /** Lower end of segment. */ protected double from; /** Upper end of segment. */