Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/model/SedimentLoadLSValue.java @ 8025:c915e99d9e52
Renamed SedimentYield to SedimentLoadLS and SedimentYieldValue to SedimentLoadLSValue. Adjust the names of the parsers and the rest of the glue.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 09 Jul 2014 18:13:13 +0200 |
parents | |
children | fd3a24336e6a |
comparison
equal
deleted
inserted
replaced
8024:963ede7b32bb | 8025:c915e99d9e52 |
---|---|
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU AGPL (>=v3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
6 * documentation coming with Dive4Elements River for details. | |
7 */ | |
8 | |
9 package org.dive4elements.river.model; | |
10 | |
11 import java.io.Serializable; | |
12 | |
13 import javax.persistence.Entity; | |
14 import javax.persistence.Id; | |
15 import javax.persistence.Table; | |
16 import javax.persistence.GeneratedValue; | |
17 import javax.persistence.Column; | |
18 import javax.persistence.SequenceGenerator; | |
19 import javax.persistence.GenerationType; | |
20 import javax.persistence.JoinColumn; | |
21 import javax.persistence.OneToOne; | |
22 | |
23 import org.apache.log4j.Logger; | |
24 | |
25 | |
26 @Entity | |
27 @Table(name = "sediment_yield_values") | |
28 public class SedimentLoadLSValue | |
29 implements Serializable | |
30 { | |
31 private static Logger logger = Logger.getLogger(SedimentLoadLSValue.class); | |
32 | |
33 private Integer id; | |
34 | |
35 private SedimentLoadLS sedimentYield; | |
36 | |
37 private Double station; | |
38 private Double value; | |
39 | |
40 private Unit unit; | |
41 | |
42 | |
43 public SedimentLoadLSValue() { | |
44 } | |
45 | |
46 public SedimentLoadLSValue( | |
47 SedimentLoadLS sedimentYield, | |
48 Double station, | |
49 Double value | |
50 ) { | |
51 this.sedimentYield = sedimentYield; | |
52 this.station = station; | |
53 this.value = value; | |
54 } | |
55 | |
56 @Id | |
57 @SequenceGenerator( | |
58 name = "SEQUENCE_SEDIMENT_YIELD_VALuES_ID_SEQ", | |
59 sequenceName = "SEDIMENT_YIELD_VALUES_ID_SEQ", | |
60 allocationSize = 1) | |
61 @GeneratedValue( | |
62 strategy = GenerationType.SEQUENCE, | |
63 generator = "SEQUENCE_SEDIMENT_YIELD_VALuES_ID_SEQ") | |
64 @Column(name = "id") | |
65 public Integer getId() { | |
66 return id; | |
67 } | |
68 | |
69 public void setId(Integer id) { | |
70 this.id = id; | |
71 } | |
72 | |
73 @OneToOne | |
74 @JoinColumn(name = "sediment_yield_id" ) | |
75 public SedimentLoadLS getSedimentYield() { | |
76 return sedimentYield; | |
77 } | |
78 | |
79 public void setSedimentYield(SedimentLoadLS sedimentYield) { | |
80 this.sedimentYield = sedimentYield; | |
81 } | |
82 | |
83 @Column(name="station") | |
84 public Double getStation() { | |
85 return station; | |
86 } | |
87 | |
88 public void setStation(Double station) { | |
89 this.station = station; | |
90 } | |
91 | |
92 @Column(name = "value") | |
93 public Double getValue() { | |
94 return value; | |
95 } | |
96 | |
97 public void setValue(Double value) { | |
98 this.value = value; | |
99 } | |
100 } | |
101 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |