comparison backend/src/main/java/org/dive4elements/river/model/SedimentYield.java @ 6722:078d56dffc8c

issue1393/backend: Add kind property to ImportSedimentYield and SedimentYield.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 31 Jul 2013 11:12:08 +0200
parents 4c3ccf2b0304
children
comparison
equal deleted inserted replaced
6721:df402b3e0281 6722:078d56dffc8c
23 import javax.persistence.OneToOne; 23 import javax.persistence.OneToOne;
24 24
25 import org.apache.log4j.Logger; 25 import org.apache.log4j.Logger;
26 26
27 27
28 /** SedimentYield of a certain Fraction with possibly many values. */
28 @Entity 29 @Entity
29 @Table(name = "sediment_yield") 30 @Table(name = "sediment_yield")
30 public class SedimentYield 31 public class SedimentYield
31 implements Serializable 32 implements Serializable
32 { 33 {
43 private TimeInterval timeInterval; 44 private TimeInterval timeInterval;
44 45
45 private String description; 46 private String description;
46 47
47 private List<SedimentYieldValue> values; 48 private List<SedimentYieldValue> values;
49
50 private Integer kind;
48 51
49 52
50 public SedimentYield() { 53 public SedimentYield() {
51 this.values = new ArrayList<SedimentYieldValue>(); 54 this.values = new ArrayList<SedimentYieldValue>();
52 } 55 }
147 } 150 }
148 151
149 public void setDescription(String description) { 152 public void setDescription(String description) {
150 this.description = description; 153 this.description = description;
151 } 154 }
155
156 /** kind == 0: "normal", kind == 1: "official epoch". */
157 @Column(name = "kind")
158 public Integer getKind() {
159 return kind;
160 }
161
162 public void setKind(Integer newKind) {
163 this.kind = newKind;
164 }
152 } 165 }
153 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 166 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org