annotate flys-backend/src/main/java/de/intevation/flys/model/FedState.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.JoinColumn;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
9 import javax.persistence.OneToOne;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
10 import javax.persistence.Table;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
11
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
12 import org.hibernate.Session;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
13 import org.hibernate.Query;
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 import de.intevation.flys.backend.SessionHolder;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
16
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
17 @Entity
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
18 @Table(name = "fed_states")
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
19 public class FedState implements Serializable {
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
20 private Integer id;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
21 private String name;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
22
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
23 @Id
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
24 @Column(name = "id")
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
25 public Integer getId() {
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
26 return id;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
27 }
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 public void setId(Integer id) {
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
30 this.id = id;
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
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 * Get name.
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 * @return name of the Federal State as String.
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
37 */
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
38 @Column(name = "name")
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
39 public String getName()
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 return name;
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
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 * Set name.
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 * @param name the value to set.
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 public void setName(String 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 this.name = name;
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 };

http://dive4elements.wald.intevation.org