Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/model/land/KommentarP.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 |
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 kommentar_p database table. | |
17 * | |
18 */ | |
19 @Entity | |
20 @Table(name="kommentar_p") | |
21 public class KommentarP implements Serializable { | |
22 private static final long serialVersionUID = 1L; | |
23 | |
24 @Id | |
25 @GeneratedValue(strategy=GenerationType.IDENTITY) | |
26 private Integer id; | |
27 | |
28 private Timestamp datum; | |
29 | |
30 @Column(name="mst_id") | |
31 private String mstId; | |
32 | |
33 @Column(name="probe_id") | |
34 private Integer probeId; | |
35 | |
36 private String text; | |
37 | |
38 @Transient | |
39 private boolean owner; | |
40 | |
41 @Transient | |
42 private boolean readonly; | |
43 | |
44 public KommentarP() { | |
45 } | |
46 | |
47 public Integer getId() { | |
48 return this.id; | |
49 } | |
50 | |
51 public void setId(Integer id) { | |
52 this.id = id; | |
53 } | |
54 | |
55 public Timestamp getDatum() { | |
56 return this.datum; | |
57 } | |
58 | |
59 public void setDatum(Timestamp datum) { | |
60 this.datum = datum; | |
61 } | |
62 | |
63 public String getMstId() { | |
64 return this.mstId; | |
65 } | |
66 | |
67 public void setMstId(String mstId) { | |
68 this.mstId = mstId; | |
69 } | |
70 | |
71 public Integer getProbeId() { | |
72 return this.probeId; | |
73 } | |
74 | |
75 public void setProbeId(Integer probeId) { | |
76 this.probeId = probeId; | |
77 } | |
78 | |
79 public String getText() { | |
80 return this.text; | |
81 } | |
82 | |
83 public void setText(String text) { | |
84 this.text = text; | |
85 } | |
86 | |
87 /** | |
88 * @return the owner | |
89 */ | |
90 public boolean isOwner() { | |
91 return owner; | |
92 } | |
93 | |
94 /** | |
95 * @param owner the owner to set | |
96 */ | |
97 public void setOwner(boolean owner) { | |
98 this.owner = owner; | |
99 } | |
100 | |
101 /** | |
102 * @return the readonly | |
103 */ | |
104 public boolean isReadonly() { | |
105 return readonly; | |
106 } | |
107 | |
108 /** | |
109 * @param readonly the readonly to set | |
110 */ | |
111 public void setReadonly(boolean readonly) { | |
112 this.readonly = readonly; | |
113 } | |
114 | |
115 } |