Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/seddb/model/Gewaesser.java @ 3334:2ae732e2c65c
FLYS backend: Removed trailing whitespace.
flys-backend/trunk@4669 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 15 Jun 2012 09:20:49 +0000 |
parents | aa8ed778c8cc |
children | 18619c1e7c2a |
comparison
equal
deleted
inserted
replaced
3333:76c75c8b9ee0 | 3334:2ae732e2c65c |
---|---|
17 * Gewaesser generated by hbm2java | 17 * Gewaesser generated by hbm2java |
18 */ | 18 */ |
19 @Entity | 19 @Entity |
20 @Table(name="GEWAESSER" | 20 @Table(name="GEWAESSER" |
21 ,schema="SEDDB" | 21 ,schema="SEDDB" |
22 , uniqueConstraints = @UniqueConstraint(columnNames="NAME") | 22 , uniqueConstraints = @UniqueConstraint(columnNames="NAME") |
23 ) | 23 ) |
24 public class Gewaesser implements java.io.Serializable { | 24 public class Gewaesser implements java.io.Serializable { |
25 | 25 |
26 | 26 |
27 private long gewaesserid; | 27 private long gewaesserid; |
48 this.einzugsgebiet = einzugsgebiet; | 48 this.einzugsgebiet = einzugsgebiet; |
49 this.bemerkung = bemerkung; | 49 this.bemerkung = bemerkung; |
50 this.bezugspegels = bezugspegels; | 50 this.bezugspegels = bezugspegels; |
51 this.stations = stations; | 51 this.stations = stations; |
52 } | 52 } |
53 | |
54 @Id | |
55 | 53 |
56 | 54 @Id |
55 | |
56 | |
57 @Column(name="GEWAESSERID", unique=true, nullable=false, precision=11, scale=0) | 57 @Column(name="GEWAESSERID", unique=true, nullable=false, precision=11, scale=0) |
58 public long getGewaesserid() { | 58 public long getGewaesserid() { |
59 return this.gewaesserid; | 59 return this.gewaesserid; |
60 } | 60 } |
61 | 61 |
62 public void setGewaesserid(long gewaesserid) { | 62 public void setGewaesserid(long gewaesserid) { |
63 this.gewaesserid = gewaesserid; | 63 this.gewaesserid = gewaesserid; |
64 } | 64 } |
65 | 65 |
66 | 66 |
67 @Column(name="NAME", unique=true, nullable=false, length=20) | 67 @Column(name="NAME", unique=true, nullable=false, length=20) |
68 public String getName() { | 68 public String getName() { |
69 return this.name; | 69 return this.name; |
70 } | 70 } |
71 | 71 |
72 public void setName(String name) { | 72 public void setName(String name) { |
73 this.name = name; | 73 this.name = name; |
74 } | 74 } |
75 | 75 |
76 | 76 |
77 @Column(name="KENNUNG", length=11) | 77 @Column(name="KENNUNG", length=11) |
78 public String getKennung() { | 78 public String getKennung() { |
79 return this.kennung; | 79 return this.kennung; |
80 } | 80 } |
81 | 81 |
82 public void setKennung(String kennung) { | 82 public void setKennung(String kennung) { |
83 this.kennung = kennung; | 83 this.kennung = kennung; |
84 } | 84 } |
85 | 85 |
86 | 86 |
87 @Column(name="LAENGE", precision=7, scale=3) | 87 @Column(name="LAENGE", precision=7, scale=3) |
88 public BigDecimal getLaenge() { | 88 public BigDecimal getLaenge() { |
89 return this.laenge; | 89 return this.laenge; |
90 } | 90 } |
91 | 91 |
92 public void setLaenge(BigDecimal laenge) { | 92 public void setLaenge(BigDecimal laenge) { |
93 this.laenge = laenge; | 93 this.laenge = laenge; |
94 } | 94 } |
95 | 95 |
96 | 96 |
97 @Column(name="EINZUGSGEBIET", precision=10) | 97 @Column(name="EINZUGSGEBIET", precision=10) |
98 public BigDecimal getEinzugsgebiet() { | 98 public BigDecimal getEinzugsgebiet() { |
99 return this.einzugsgebiet; | 99 return this.einzugsgebiet; |
100 } | 100 } |
101 | 101 |
102 public void setEinzugsgebiet(BigDecimal einzugsgebiet) { | 102 public void setEinzugsgebiet(BigDecimal einzugsgebiet) { |
103 this.einzugsgebiet = einzugsgebiet; | 103 this.einzugsgebiet = einzugsgebiet; |
104 } | 104 } |
105 | 105 |
106 | 106 |
107 @Column(name="BEMERKUNG", length=240) | 107 @Column(name="BEMERKUNG", length=240) |
108 public String getBemerkung() { | 108 public String getBemerkung() { |
109 return this.bemerkung; | 109 return this.bemerkung; |
110 } | 110 } |
111 | 111 |
112 public void setBemerkung(String bemerkung) { | 112 public void setBemerkung(String bemerkung) { |
113 this.bemerkung = bemerkung; | 113 this.bemerkung = bemerkung; |
114 } | 114 } |
115 | 115 |
116 @OneToMany(fetch=FetchType.LAZY, mappedBy="gewaesser") | 116 @OneToMany(fetch=FetchType.LAZY, mappedBy="gewaesser") |
117 public Set<Bezugspegel> getBezugspegels() { | 117 public Set<Bezugspegel> getBezugspegels() { |
118 return this.bezugspegels; | 118 return this.bezugspegels; |
119 } | 119 } |
120 | 120 |
121 public void setBezugspegels(Set<Bezugspegel> bezugspegels) { | 121 public void setBezugspegels(Set<Bezugspegel> bezugspegels) { |
122 this.bezugspegels = bezugspegels; | 122 this.bezugspegels = bezugspegels; |
123 } | 123 } |
124 | 124 |
125 @OneToMany(fetch=FetchType.LAZY, mappedBy="gewaesser") | 125 @OneToMany(fetch=FetchType.LAZY, mappedBy="gewaesser") |
126 public Set<Station> getStations() { | 126 public Set<Station> getStations() { |
127 return this.stations; | 127 return this.stations; |
128 } | 128 } |
129 | 129 |
130 public void setStations(Set<Station> stations) { | 130 public void setStations(Set<Station> stations) { |
131 this.stations = stations; | 131 this.stations = stations; |
132 } | 132 } |
133 | 133 |
134 | 134 |