Mercurial > dive4elements > river
annotate flys-backend/src/main/java/de/intevation/flys/model/BoundaryKind.java @ 5069:082e7b01d562 dami
documentation: Use german Silbentrennung.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 20 Feb 2013 09:06:18 +0100 |
parents | fb7c4ad94bd8 |
children | 1d95391d056b |
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 import org.hibernate.Session; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
11 import org.hibernate.Query; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
12 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
13 import de.intevation.flys.backend.SessionHolder; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
14 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
15 @Entity |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
16 @Table(name = "boundary_kinds") |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
17 public class BoundaryKind implements Serializable { |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
18 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
|
19 private String name; |
5060
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 @Id |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
22 @Column(name = "id") |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
23 public Integer getId() { |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
24 return id; |
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 public void setId(Integer id) { |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
28 this.id = id; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
29 } |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
30 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
31 /** |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
32 * Get name. |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
33 * |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
34 * @return name of the kind of boundary as String. |
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 @Column(name = "name") |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
37 public String getName() |
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 return name; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
40 } |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
41 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
42 /** |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
43 * Set name. |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
44 * |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
45 * @param name the value to set. |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
46 */ |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
47 public void setName(String name) |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
48 { |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
49 this.name = name; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
50 } |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
51 }; |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
52 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
53 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
54 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
55 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
56 |
c629719b87e7
Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
57 |