Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/model/land/ZusatzWert.java @ 1028:1c41c7b8f7c2 schema-update
Updated server application to new database model. THIS IS STILL WIP!!!
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 08 Jul 2016 15:32:36 +0200 |
parents | |
children | 812e0cace5ba |
comparison
equal
deleted
inserted
replaced
1027:9971471d562c | 1028:1c41c7b8f7c2 |
---|---|
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.Table; | |
12 import javax.persistence.Transient; | |
13 | |
14 | |
15 /** | |
16 * The persistent class for the zusatz_wert database table. | |
17 * | |
18 */ | |
19 @Entity | |
20 @Table(name="zusatz_wert") | |
21 public class ZusatzWert implements Serializable { | |
22 private static final long serialVersionUID = 1L; | |
23 | |
24 @Id | |
25 @GeneratedValue(strategy=GenerationType.IDENTITY) | |
26 private Integer id; | |
27 | |
28 @Column(name="letzte_aenderung") | |
29 private Timestamp letzteAenderung; | |
30 | |
31 private float messfehler; | |
32 | |
33 @Column(name="messwert_pzs") | |
34 private double messwertPzs; | |
35 | |
36 @Column(name="nwg_zu_messwert") | |
37 private double nwgZuMesswert; | |
38 | |
39 @Column(name="probe_id") | |
40 private Integer probeId; | |
41 | |
42 @Column(name="pzs_id") | |
43 private String pzsId; | |
44 | |
45 @Column(name="tree_modified") | |
46 private Timestamp treeModified; | |
47 | |
48 @Transient | |
49 private boolean owner; | |
50 | |
51 @Transient | |
52 private boolean readonly; | |
53 | |
54 public ZusatzWert() { | |
55 } | |
56 | |
57 public Integer getId() { | |
58 return this.id; | |
59 } | |
60 | |
61 public void setId(Integer id) { | |
62 this.id = id; | |
63 } | |
64 | |
65 public Timestamp getLetzteAenderung() { | |
66 return this.letzteAenderung; | |
67 } | |
68 | |
69 public void setLetzteAenderung(Timestamp letzteAenderung) { | |
70 this.letzteAenderung = letzteAenderung; | |
71 } | |
72 | |
73 public float getMessfehler() { | |
74 return this.messfehler; | |
75 } | |
76 | |
77 public void setMessfehler(float messfehler) { | |
78 this.messfehler = messfehler; | |
79 } | |
80 | |
81 public double getMesswertPzs() { | |
82 return this.messwertPzs; | |
83 } | |
84 | |
85 public void setMesswertPzs(double messwertPzs) { | |
86 this.messwertPzs = messwertPzs; | |
87 } | |
88 | |
89 public double getNwgZuMesswert() { | |
90 return this.nwgZuMesswert; | |
91 } | |
92 | |
93 public void setNwgZuMesswert(double nwgZuMesswert) { | |
94 this.nwgZuMesswert = nwgZuMesswert; | |
95 } | |
96 | |
97 public Integer getProbeId() { | |
98 return this.probeId; | |
99 } | |
100 | |
101 public void setProbeId(Integer probeId) { | |
102 this.probeId = probeId; | |
103 } | |
104 | |
105 public String getPzsId() { | |
106 return this.pzsId; | |
107 } | |
108 | |
109 public void setPzsId(String pzsId) { | |
110 this.pzsId = pzsId; | |
111 } | |
112 | |
113 public Timestamp getTreeModified() { | |
114 return this.treeModified; | |
115 } | |
116 | |
117 public void setTreeModified(Timestamp treeModified) { | |
118 this.treeModified = treeModified; | |
119 } | |
120 | |
121 /** | |
122 * @return the owner | |
123 */ | |
124 public boolean isOwner() { | |
125 return owner; | |
126 } | |
127 | |
128 /** | |
129 * @param owner the owner to set | |
130 */ | |
131 public void setOwner(boolean owner) { | |
132 this.owner = owner; | |
133 } | |
134 | |
135 /** | |
136 * @return the readonly | |
137 */ | |
138 public boolean isReadonly() { | |
139 return readonly; | |
140 } | |
141 | |
142 /** | |
143 * @param readonly the readonly to set | |
144 */ | |
145 public void setReadonly(boolean readonly) { | |
146 this.readonly = readonly; | |
147 } | |
148 | |
149 } |