Mercurial > dive4elements > river
annotate flys-backend/src/main/java/de/intevation/flys/model/HWSKind.java @ 5801:6da56416da86
chart/staticwqkms.xml: Add facets to compat list.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 24 Apr 2013 09:00:57 +0200 |
parents | 615e25b6440e |
children |
rev | line source |
---|---|
5060
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.flys.model; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
2 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
3 import java.io.Serializable; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
4 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
5 import javax.persistence.Column; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
6 import javax.persistence.Entity; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
7 import javax.persistence.Id; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
8 import javax.persistence.Table; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
9 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
10 @Entity |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
11 @Table(name = "hws_kinds") |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
12 public class HWSKind implements Serializable { |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
13 private Integer id; |
5064
fb7c4ad94bd8
Fix build: some more imports some less imports some copy paste errors
Andre Heinecke <aheinecke@intevation.de>
parents:
5060
diff
changeset
|
14 private String name; |
5060
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
15 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
16 @Id |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
17 @Column(name = "id") |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
18 public Integer getId() { |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
19 return id; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
20 } |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
21 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
22 public void setId(Integer id) { |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
23 this.id = id; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
24 } |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
25 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
26 /** |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
27 * Get name. |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
28 * |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
29 * @return The name of the Hochwasserschutzanlagenart as String. |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
30 */ |
5346
615e25b6440e
Fix HWSKind column name for the name of the kind
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
31 @Column(name = "kind") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
32 public String getName() { |
5060
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
33 return name; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
34 } |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
35 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
36 /** |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
37 * Set name. |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
38 * |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
39 * @param name the value to set. |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
40 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
41 public void setName(String name) { |
5060
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
42 this.name = name; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
43 } |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
44 } |