Mercurial > lada > lada-server
annotate src/main/java/de/intevation/model/LKommentarP.java @ 27:3fced8e2a030
Removed relations
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 08 May 2013 13:46:48 +0200 |
parents | 34d7ecfba8d1 |
children |
rev | line source |
---|---|
25
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.model; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 import java.io.Serializable; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 import javax.persistence.*; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 import java.sql.Timestamp; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 /** |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 * The persistent class for the l_kommentar_p database table. |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 * |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
11 */ |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 @Entity |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 @Table(name="l_kommentar_p") |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 public class LKommentarP implements Serializable { |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 private static final long serialVersionUID = 1L; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 private LKommentarPPK id; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 private String erzeuger; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 private Timestamp kDatum; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 private String kText; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 private LProbe LProbe; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 public LKommentarP() { |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 } |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 @EmbeddedId |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 public LKommentarPPK getId() { |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 return this.id; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 } |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 public void setId(LKommentarPPK id) { |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
32 this.id = id; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
33 } |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
34 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
35 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
36 public String getErzeuger() { |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
37 return this.erzeuger; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
38 } |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
39 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
40 public void setErzeuger(String erzeuger) { |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
41 this.erzeuger = erzeuger; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
42 } |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
43 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
44 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
45 @Column(name="k_datum") |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
46 public Timestamp getKDatum() { |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
47 return this.kDatum; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
48 } |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
49 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
50 public void setKDatum(Timestamp kDatum) { |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
51 this.kDatum = kDatum; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
52 } |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
53 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
54 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
55 @Column(name="k_text") |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
56 public String getKText() { |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
57 return this.kText; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
58 } |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
59 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
60 public void setKText(String kText) { |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
61 this.kText = kText; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
62 } |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
63 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
64 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
65 //bi-directional many-to-one association to LProbe |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
66 @ManyToOne |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
67 @JoinColumn(name="probe_id", insertable=false, updatable=false) |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
68 public LProbe getLProbe() { |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
69 return this.LProbe; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
70 } |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
71 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
72 public void setLProbe(LProbe LProbe) { |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
73 this.LProbe = LProbe; |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
74 } |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
75 |
34d7ecfba8d1
Added Relation to Kommentare by using the atomatic generation from database
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
76 } |