Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/model/land/ZusatzWert.java @ 1097:186d602e031a
Merged branch schema-update into default.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 14 Oct 2016 18:17:42 +0200 |
parents | |
children | 5a7488468cb2 |
comparison
equal
deleted
inserted
replaced
1096:565c8a67034d | 1097:186d602e031a |
---|---|
1 package de.intevation.lada.model.land; | |
2 | |
3 import java.io.Serializable; | |
4 import java.sql.Timestamp; | |
5 | |
6 import javax.persistence.Column; | |
7 import javax.persistence.Entity; | |
8 import javax.persistence.GeneratedValue; | |
9 import javax.persistence.GenerationType; | |
10 import javax.persistence.Id; | |
11 import javax.persistence.JoinColumn; | |
12 import javax.persistence.OneToOne; | |
13 import javax.persistence.Table; | |
14 import javax.persistence.Transient; | |
15 | |
16 | |
17 /** | |
18 * The persistent class for the zusatz_wert database table. | |
19 * | |
20 */ | |
21 @Entity | |
22 @Table(name="zusatz_wert") | |
23 public class ZusatzWert implements Serializable { | |
24 private static final long serialVersionUID = 1L; | |
25 | |
26 @Id | |
27 @GeneratedValue(strategy=GenerationType.IDENTITY) | |
28 private Integer id; | |
29 | |
30 @Column(name="letzte_aenderung") | |
31 private Timestamp letzteAenderung; | |
32 | |
33 private float messfehler; | |
34 | |
35 @Column(name="messwert_pzs") | |
36 private double messwertPzs; | |
37 | |
38 @Column(name="nwg_zu_messwert") | |
39 private double nwgZuMesswert; | |
40 | |
41 @Column(name="probe_id") | |
42 private Integer probeId; | |
43 | |
44 @Column(name="pzs_id") | |
45 private String pzsId; | |
46 | |
47 @Column(name="tree_modified") | |
48 private Timestamp treeModified; | |
49 | |
50 @OneToOne | |
51 @JoinColumn(name="probe_id", insertable=false, updatable=false) | |
52 private Probe probe; | |
53 | |
54 @Transient | |
55 private boolean owner; | |
56 | |
57 @Transient | |
58 private boolean readonly; | |
59 | |
60 @Transient | |
61 private Timestamp parentModified; | |
62 | |
63 public ZusatzWert() { | |
64 } | |
65 | |
66 public Integer getId() { | |
67 return this.id; | |
68 } | |
69 | |
70 public void setId(Integer id) { | |
71 this.id = id; | |
72 } | |
73 | |
74 public Timestamp getLetzteAenderung() { | |
75 return this.letzteAenderung; | |
76 } | |
77 | |
78 public void setLetzteAenderung(Timestamp letzteAenderung) { | |
79 this.letzteAenderung = letzteAenderung; | |
80 } | |
81 | |
82 public float getMessfehler() { | |
83 return this.messfehler; | |
84 } | |
85 | |
86 public void setMessfehler(float messfehler) { | |
87 this.messfehler = messfehler; | |
88 } | |
89 | |
90 public double getMesswertPzs() { | |
91 return this.messwertPzs; | |
92 } | |
93 | |
94 public void setMesswertPzs(double messwertPzs) { | |
95 this.messwertPzs = messwertPzs; | |
96 } | |
97 | |
98 public double getNwgZuMesswert() { | |
99 return this.nwgZuMesswert; | |
100 } | |
101 | |
102 public void setNwgZuMesswert(double nwgZuMesswert) { | |
103 this.nwgZuMesswert = nwgZuMesswert; | |
104 } | |
105 | |
106 public Integer getProbeId() { | |
107 return this.probeId; | |
108 } | |
109 | |
110 public void setProbeId(Integer probeId) { | |
111 this.probeId = probeId; | |
112 } | |
113 | |
114 public String getPzsId() { | |
115 return this.pzsId; | |
116 } | |
117 | |
118 public void setPzsId(String pzsId) { | |
119 this.pzsId = pzsId; | |
120 } | |
121 | |
122 public Timestamp getTreeModified() { | |
123 return this.treeModified; | |
124 } | |
125 | |
126 public void setTreeModified(Timestamp treeModified) { | |
127 this.treeModified = treeModified; | |
128 } | |
129 | |
130 /** | |
131 * @return the owner | |
132 */ | |
133 public boolean isOwner() { | |
134 return owner; | |
135 } | |
136 | |
137 /** | |
138 * @param owner the owner to set | |
139 */ | |
140 public void setOwner(boolean owner) { | |
141 this.owner = owner; | |
142 } | |
143 | |
144 /** | |
145 * @return the readonly | |
146 */ | |
147 public boolean isReadonly() { | |
148 return readonly; | |
149 } | |
150 | |
151 /** | |
152 * @param readonly the readonly to set | |
153 */ | |
154 public void setReadonly(boolean readonly) { | |
155 this.readonly = readonly; | |
156 } | |
157 | |
158 public Timestamp getParentModified() { | |
159 if (this.parentModified == null && this.probe != null) { | |
160 return this.probe.getTreeModified(); | |
161 } | |
162 return this.parentModified; | |
163 } | |
164 | |
165 public void setParentModified(Timestamp parentModified) { | |
166 this.parentModified = parentModified; | |
167 } | |
168 } |