comparison flys-backend/src/main/java/de/intevation/flys/model/SectieKind.java @ 5060:c629719b87e7 dami

Add the simple lookup table classes to the model
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 20 Feb 2013 17:01:13 +0100
parents
children fb7c4ad94bd8
comparison
equal deleted inserted replaced
5059:2d68969bd2dc 5060:c629719b87e7
1 package de.intevation.flys.model;
2
3 import java.io.Serializable;
4 import java.util.List;
5 import java.math.BigDecimal;
6
7 import javax.persistence.Column;
8 import javax.persistence.Entity;
9 import javax.persistence.Id;
10 import javax.persistence.JoinColumn;
11 import javax.persistence.OneToOne;
12 import javax.persistence.Table;
13
14 import org.hibernate.Session;
15 import org.hibernate.Query;
16
17 import de.intevation.flys.backend.SessionHolder;
18
19 @Entity
20 @Table(name = "sectie_kinds")
21 public class SectieKind implements Serializable {
22 private Integer id;
23 private String kind;
24
25 @Id
26 @Column(name = "id")
27 public Integer getId() {
28 return id;
29 }
30
31 public void setId(Integer id) {
32 this.id = id;
33 }
34
35 /**
36 * Get name.
37 *
38 * @return name of the kind of sectie as String.
39 */
40 @Column(name = "name")
41 public String getName()
42 {
43 return name;
44 }
45
46 /**
47 * Set name.
48 *
49 * @param name the value to set.
50 */
51 public void setName(String name)
52 {
53 this.name = name;
54 }
55 };
56
57
58
59

http://dive4elements.wald.intevation.org