Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/FloodplainKind.java @ 5242:88e3473a3846 2.9.12
Add kind handling for floodplains and crossectiontracks
getFloodplain / getCrossection now return only the "current" one
1 is current
0 is misc
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 12 Mar 2013 11:29:10 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
5241:31b464f17392 | 5242:88e3473a3846 |
---|---|
1 package de.intevation.flys.model; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 import javax.persistence.Column; | |
6 import javax.persistence.Entity; | |
7 import javax.persistence.Id; | |
8 import javax.persistence.Table; | |
9 | |
10 @Entity | |
11 @Table(name = "floodplain_kinds") | |
12 public class FloodplainKind implements Serializable { | |
13 private Integer id; | |
14 private String name; | |
15 | |
16 @Id | |
17 @Column(name = "id") | |
18 public Integer getId() { | |
19 return id; | |
20 } | |
21 | |
22 public void setId(Integer id) { | |
23 this.id = id; | |
24 } | |
25 | |
26 /** | |
27 * Get name. | |
28 * | |
29 * @return The name of the Floodplain Kind as String. | |
30 */ | |
31 @Column(name = "name") | |
32 public String getName() { | |
33 return name; | |
34 } | |
35 | |
36 /** | |
37 * Set name. | |
38 * | |
39 * @param name the value to set. | |
40 */ | |
41 public void setName(String name) { | |
42 this.name = name; | |
43 } | |
44 } | |
45 |