Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/MainValueType.java @ 189:bc3747a371cc
First part of parsing main values.
flys-backend/trunk@1520 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 18 Mar 2011 16:12:24 +0000 |
parents | 249390dd24e7 |
children | ed38839a6b08 |
comparison
equal
deleted
inserted
replaced
188:003ac16812dd | 189:bc3747a371cc |
---|---|
15 @Entity | 15 @Entity |
16 @Table(name = "main_value_types") | 16 @Table(name = "main_value_types") |
17 public class MainValueType | 17 public class MainValueType |
18 implements Serializable | 18 implements Serializable |
19 { | 19 { |
20 private Integer id; | 20 private Integer id; |
21 private BigDecimal value; | 21 private String name; |
22 | 22 |
23 public MainValueType() { | 23 public MainValueType() { |
24 } | |
25 | |
26 public MainValueType(String name) { | |
27 this.name = name; | |
24 } | 28 } |
25 | 29 |
26 @Id | 30 @Id |
27 @SequenceGenerator( | 31 @SequenceGenerator( |
28 name = "SEQUENCE_MAIN_VALUE_TYPES_ID_SEQ", | 32 name = "SEQUENCE_MAIN_VALUE_TYPES_ID_SEQ", |
38 | 42 |
39 public void setId(Integer id) { | 43 public void setId(Integer id) { |
40 this.id = id; | 44 this.id = id; |
41 } | 45 } |
42 | 46 |
43 @Column(name = "value") // FIXME: Type conversion needed? | 47 @Column(name = "name") // FIXME: Type conversion needed? |
44 public BigDecimal getValue() { | 48 public String getName() { |
45 return value; | 49 return name; |
46 } | 50 } |
47 | 51 |
48 public void setValue(BigDecimal value) { | 52 public void setName(String name) { |
49 this.value = value; | 53 this.name = name; |
50 } | 54 } |
51 } | 55 } |
52 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 56 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |