# HG changeset patch # User Felix Wolfsteller # Date 1327048207 0 # Node ID 345a236f70754960f9e3f9308777e88a0e73a10e # Parent 79044646f4ebd68505f2ea8cbec6ead38576f1c1 Made HYKFactory.Zone Serializable (and thus cachable). flys-artifacts/trunk@3730 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 79044646f4eb -r 345a236f7075 flys-artifacts/ChangeLog --- 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 + + * src/main/java/de/intevation/flys/artifacts/model/HYKFactory.java: + Made HYKFactory.Zone Serializable. + 2012-01-20 Felix Wolfsteller * src/main/java/de/intevation/flys/artifacts/HYKArtifact.java: diff -r 79044646f4eb -r 345a236f7075 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/HYKFactory.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 forms = query.list(); List zones = new ArrayList(); @@ -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. */