Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/DischargeTableValue.java @ 172:605320b7df94
Added column annotations for simple fields. TODO: foreign keys.
flys-backend/trunk@1464 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 14 Mar 2011 15:29:00 +0000 |
parents | 4a83e14f40f9 |
children | 249390dd24e7 |
comparison
equal
deleted
inserted
replaced
171:4a83e14f40f9 | 172:605320b7df94 |
---|---|
32 allocationSize = 1) | 32 allocationSize = 1) |
33 @GeneratedValue( | 33 @GeneratedValue( |
34 strategy = GenerationType.SEQUENCE, | 34 strategy = GenerationType.SEQUENCE, |
35 generator = "SEQUENCE_DISCHARGE_TABLE_VALUES_ID_SEQ") | 35 generator = "SEQUENCE_DISCHARGE_TABLE_VALUES_ID_SEQ") |
36 @Column(name = "id") | 36 @Column(name = "id") |
37 | |
38 public Integer getId() { | 37 public Integer getId() { |
39 return id; | 38 return id; |
40 } | 39 } |
41 | 40 |
42 public void setId(Integer id) { | 41 public void setId(Integer id) { |
49 | 48 |
50 public DischargeTable getDischargeTable() { | 49 public DischargeTable getDischargeTable() { |
51 return dischargeTable; | 50 return dischargeTable; |
52 } | 51 } |
53 | 52 |
53 @Column(name = "q") | |
54 public BigDecimal getQ() { | |
55 return q; | |
56 } | |
57 | |
54 public void setQ(BigDecimal q) { | 58 public void setQ(BigDecimal q) { |
55 this.q = q; | 59 this.q = q; |
56 } | 60 } |
57 | 61 |
58 public BigDecimal getQ() { | 62 @Column(name = "w") |
59 return q; | 63 public BigDecimal getW() { |
64 return w; | |
60 } | 65 } |
61 | 66 |
62 public void setW(BigDecimal w) { | 67 public void setW(BigDecimal w) { |
63 this.w = w; | 68 this.w = w; |
64 } | 69 } |
65 | |
66 public BigDecimal getW() { | |
67 return w; | |
68 } | |
69 } | 70 } |
70 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 71 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |