Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/FlowVelocityMeasurementValue.java @ 2877:f0a67bc0e777 2.7
merged flys-backend/2.7
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:31 +0200 |
parents | 6faa47ca1fee |
children | 32a4ed054fc7 |
comparison
equal
deleted
inserted
replaced
2793:6310b1582f2d | 2877:f0a67bc0e777 |
---|---|
1 package de.intevation.flys.model; | |
2 | |
3 import java.io.Serializable; | |
4 import java.math.BigDecimal; | |
5 import java.util.Date; | |
6 | |
7 import javax.persistence.Entity; | |
8 import javax.persistence.Id; | |
9 import javax.persistence.Table; | |
10 import javax.persistence.GeneratedValue; | |
11 import javax.persistence.Column; | |
12 import javax.persistence.SequenceGenerator; | |
13 import javax.persistence.GenerationType; | |
14 import javax.persistence.JoinColumn; | |
15 import javax.persistence.OneToOne; | |
16 | |
17 import org.apache.log4j.Logger; | |
18 | |
19 | |
20 @Entity | |
21 @Table(name = "flow_velocity_measure_values") | |
22 public class FlowVelocityMeasurementValue | |
23 implements Serializable | |
24 { | |
25 private static Logger logger = | |
26 Logger.getLogger(FlowVelocityMeasurementValue.class); | |
27 | |
28 | |
29 private Integer id; | |
30 | |
31 private FlowVelocityMeasurement measurement; | |
32 | |
33 private BigDecimal station; | |
34 private BigDecimal w; | |
35 private BigDecimal q; | |
36 private BigDecimal v; | |
37 | |
38 private Date datetime; | |
39 | |
40 private String description; | |
41 | |
42 | |
43 public FlowVelocityMeasurementValue() { | |
44 } | |
45 | |
46 | |
47 public FlowVelocityMeasurementValue( | |
48 FlowVelocityMeasurement measurement, | |
49 Date datetime, | |
50 BigDecimal station, | |
51 BigDecimal w, | |
52 BigDecimal q, | |
53 BigDecimal v, | |
54 String description | |
55 ) { | |
56 this.measurement = measurement; | |
57 this.datetime = datetime; | |
58 this.station = station; | |
59 this.w = w; | |
60 this.q = q; | |
61 this.v = v; | |
62 this.description = description; | |
63 } | |
64 | |
65 @Id | |
66 @SequenceGenerator( | |
67 name = "SEQUENCE_FV_MEASURE_VALUES_ID_SEQ", | |
68 sequenceName = "FV_MEASURE_VALUES_ID_SEQ", | |
69 allocationSize = 1) | |
70 @GeneratedValue( | |
71 strategy = GenerationType.SEQUENCE, | |
72 generator = "SEQUENCE_FV_MEASURE_VALUES_ID_SEQ") | |
73 @Column(name = "id") | |
74 public Integer getId() { | |
75 return id; | |
76 } | |
77 | |
78 public void setId(Integer id) { | |
79 this.id = id; | |
80 } | |
81 | |
82 @OneToOne | |
83 @JoinColumn(name = "measurements_id") | |
84 public FlowVelocityMeasurement getMeasurement() { | |
85 return measurement; | |
86 } | |
87 | |
88 public void setMeasurement(FlowVelocityMeasurement measurement) { | |
89 this.measurement = measurement; | |
90 } | |
91 | |
92 @Column(name = "station") | |
93 public BigDecimal getStation() { | |
94 return station; | |
95 } | |
96 | |
97 public void setStation(BigDecimal station) { | |
98 this.station = station; | |
99 } | |
100 | |
101 @Column(name = "datetime") | |
102 public Date getDatetime() { | |
103 return datetime; | |
104 } | |
105 | |
106 public void setDatetime(Date datetime) { | |
107 this.datetime = datetime; | |
108 } | |
109 | |
110 @Column(name = "w") | |
111 public BigDecimal getW() { | |
112 return w; | |
113 } | |
114 | |
115 public void setW(BigDecimal w) { | |
116 this.w = w; | |
117 } | |
118 | |
119 @Column(name = "q") | |
120 public BigDecimal getQ() { | |
121 return q; | |
122 } | |
123 | |
124 public void setQ(BigDecimal q) { | |
125 this.q = q; | |
126 } | |
127 | |
128 @Column(name = "v") | |
129 public BigDecimal getV() { | |
130 return v; | |
131 } | |
132 | |
133 public void setV(BigDecimal v) { | |
134 this.v = v; | |
135 } | |
136 | |
137 @Column(name = "description") | |
138 public String getDescription() { | |
139 return description; | |
140 } | |
141 | |
142 public void setDescription(String description) { | |
143 this.description = description; | |
144 } | |
145 } | |
146 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |