comparison flys-backend/src/main/java/de/intevation/flys/model/AxisKind.java @ 5146:d4fdd98a04f7

Add kind_id to river_axes table and add AxisKind object to model There are currently three kinds: 0 for unkown, 1 for current, 2 for everything else. Only current is used for calculation
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 28 Feb 2013 18:04:19 +0100
parents
children
comparison
equal deleted inserted replaced
5145:801175535406 5146:d4fdd98a04f7
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 = "axis_kinds")
12 public class AxisKind 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 display Name of the 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 }

http://dive4elements.wald.intevation.org