Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/model/SUmwelt.java @ 30:c11b0df06151
Added Umwelt-Stammdaten service and data model.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 22 May 2013 13:21:35 +0200 |
parents | |
children | 5f93f1af0192 |
comparison
equal
deleted
inserted
replaced
29:c5930d01e0ab | 30:c11b0df06151 |
---|---|
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.HashSet; | |
6 import java.util.Set; | |
7 import javax.persistence.Column; | |
8 import javax.persistence.Entity; | |
9 import javax.persistence.FetchType; | |
10 import javax.persistence.Id; | |
11 import javax.persistence.JoinColumn; | |
12 import javax.persistence.ManyToOne; | |
13 import javax.persistence.OneToMany; | |
14 import javax.persistence.Table; | |
15 import javax.persistence.UniqueConstraint; | |
16 | |
17 /** | |
18 * SUmwelt generated by hbm2java | |
19 */ | |
20 @Entity | |
21 @Table(name = "s_umwelt", schema = "public", uniqueConstraints = @UniqueConstraint(columnNames = "umwelt_bereich")) | |
22 public class SUmwelt implements java.io.Serializable { | |
23 | |
24 private String umwId; | |
25 private SMessEinheit SMessEinheit; | |
26 private String beschreibung; | |
27 private String umweltBereich; | |
28 | |
29 public SUmwelt() { | |
30 } | |
31 | |
32 public SUmwelt(String umwId, String umweltBereich) { | |
33 this.umwId = umwId; | |
34 this.umweltBereich = umweltBereich; | |
35 } | |
36 | |
37 public SUmwelt(String umwId, SMessEinheit SMessEinheit, | |
38 String beschreibung, String umweltBereich) { | |
39 this.umwId = umwId; | |
40 this.SMessEinheit = SMessEinheit; | |
41 this.beschreibung = beschreibung; | |
42 this.umweltBereich = umweltBereich; | |
43 } | |
44 | |
45 @Id | |
46 @Column(name = "umw_id", unique = true, nullable = false, length = 3) | |
47 public String getUmwId() { | |
48 return this.umwId; | |
49 } | |
50 | |
51 public void setUmwId(String umwId) { | |
52 this.umwId = umwId; | |
53 } | |
54 | |
55 @ManyToOne(fetch = FetchType.EAGER) | |
56 @JoinColumn(name = "meh_id") | |
57 public SMessEinheit getSMessEinheit() { | |
58 return this.SMessEinheit; | |
59 } | |
60 | |
61 public void setSMessEinheit(SMessEinheit SMessEinheit) { | |
62 this.SMessEinheit = SMessEinheit; | |
63 } | |
64 | |
65 @Column(name = "beschreibung", length = 300) | |
66 public String getBeschreibung() { | |
67 return this.beschreibung; | |
68 } | |
69 | |
70 public void setBeschreibung(String beschreibung) { | |
71 this.beschreibung = beschreibung; | |
72 } | |
73 | |
74 @Column(name = "umwelt_bereich", unique = true, nullable = false, length = 80) | |
75 public String getUmweltBereich() { | |
76 return this.umweltBereich; | |
77 } | |
78 | |
79 public void setUmweltBereich(String umweltBereich) { | |
80 this.umweltBereich = umweltBereich; | |
81 } | |
82 } |