Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/model/LKommentarP.java @ 56:9f3e902ce778
Added new entity, repository and service for 'LKommentarP'.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 27 May 2013 15:23:41 +0200 |
parents | |
children | 2550ddb3b910 |
comparison
equal
deleted
inserted
replaced
55:ddcf13f7b6a0 | 56:9f3e902ce778 |
---|---|
1 package de.intevation.lada.model; | |
2 | |
3 // Generated 21.05.2013 16:58:30 by Hibernate Tools 3.4.0.CR1 | |
4 | |
5 import java.util.Date; | |
6 import javax.persistence.AttributeOverride; | |
7 import javax.persistence.AttributeOverrides; | |
8 import javax.persistence.Column; | |
9 import javax.persistence.EmbeddedId; | |
10 import javax.persistence.Entity; | |
11 import javax.persistence.FetchType; | |
12 import javax.persistence.JoinColumn; | |
13 import javax.persistence.ManyToOne; | |
14 import javax.persistence.SequenceGenerator; | |
15 import javax.persistence.Table; | |
16 import javax.persistence.Temporal; | |
17 import javax.persistence.TemporalType; | |
18 | |
19 /** | |
20 * LKommentarP generated by hbm2java | |
21 */ | |
22 @Entity | |
23 @Table(name = "l_kommentar_p", schema = "public") | |
24 public class LKommentarP implements java.io.Serializable { | |
25 | |
26 private LKommentarPId id; | |
27 private String probeId; | |
28 private String erzeuger; | |
29 private Date KDatum; | |
30 private String KText; | |
31 | |
32 public LKommentarP() { | |
33 } | |
34 | |
35 public LKommentarP(LKommentarPId id, String probeId, String erzeuger, | |
36 Date KDatum) { | |
37 this.id = id; | |
38 this.probeId = probeId; | |
39 this.erzeuger = erzeuger; | |
40 this.KDatum = KDatum; | |
41 } | |
42 | |
43 public LKommentarP(LKommentarPId id, String probeId, String erzeuger, | |
44 Date KDatum, String KText) { | |
45 this.id = id; | |
46 this.probeId = probeId; | |
47 this.erzeuger = erzeuger; | |
48 this.KDatum = KDatum; | |
49 this.KText = KText; | |
50 } | |
51 | |
52 @EmbeddedId | |
53 @AttributeOverrides({ | |
54 @AttributeOverride(name = "probeId", column = @Column(name = "probe_id", nullable = false, length = 20)), | |
55 @AttributeOverride(name = "KId", column = @Column(name = "k_id", nullable = false)) }) | |
56 public LKommentarPId getId() { | |
57 return this.id; | |
58 } | |
59 | |
60 public void setId(LKommentarPId id) { | |
61 this.id = id; | |
62 } | |
63 | |
64 @Column(name = "probe_id", nullable = false, insertable = false, updatable = false) | |
65 public String getProbeId() { | |
66 return this.probeId; | |
67 } | |
68 | |
69 public void setProbeId(String probeId) { | |
70 this.probeId = probeId; | |
71 } | |
72 | |
73 @Column(name = "erzeuger", nullable = false, length = 5) | |
74 public String getErzeuger() { | |
75 return this.erzeuger; | |
76 } | |
77 | |
78 public void setErzeuger(String erzeuger) { | |
79 this.erzeuger = erzeuger; | |
80 } | |
81 | |
82 @Temporal(TemporalType.TIMESTAMP) | |
83 @Column(name = "k_datum", nullable = false, length = 35) | |
84 public Date getKDatum() { | |
85 return this.KDatum; | |
86 } | |
87 | |
88 public void setKDatum(Date KDatum) { | |
89 this.KDatum = KDatum; | |
90 } | |
91 | |
92 @Column(name = "k_text", length = 1024) | |
93 public String getKText() { | |
94 return this.KText; | |
95 } | |
96 | |
97 public void setKText(String KText) { | |
98 this.KText = KText; | |
99 } | |
100 | |
101 } |