Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/SedimentDensityValue.java @ 4524:be9e28cff0c4
Parse and store year in sediment densities.
* Year is parsed ('guessed') from description column in .csv file.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 14 Nov 2012 17:24:55 +0100 |
parents | 8979f2294af9 |
children | db6c7268b08e |
comparison
equal
deleted
inserted
replaced
4523:504cd5801785 | 4524:be9e28cff0c4 |
---|---|
22 | 22 |
23 private SedimentDensity sedimentDensity; | 23 private SedimentDensity sedimentDensity; |
24 | 24 |
25 private BigDecimal station; | 25 private BigDecimal station; |
26 private BigDecimal density; | 26 private BigDecimal density; |
27 private BigDecimal year; | |
27 | 28 |
28 private String description; | 29 private String description; |
29 | 30 |
30 | 31 |
31 public SedimentDensityValue() { | 32 public SedimentDensityValue() { |
34 | 35 |
35 public SedimentDensityValue( | 36 public SedimentDensityValue( |
36 SedimentDensity sedimentDensity, | 37 SedimentDensity sedimentDensity, |
37 BigDecimal station, | 38 BigDecimal station, |
38 BigDecimal density, | 39 BigDecimal density, |
40 BigDecimal year, | |
39 String desc | 41 String desc |
40 ) { | 42 ) { |
41 this.sedimentDensity = sedimentDensity; | 43 this.sedimentDensity = sedimentDensity; |
42 this.station = station; | 44 this.station = station; |
43 this.density = density; | 45 this.density = density; |
46 this.year = year; | |
44 this.description = desc; | 47 this.description = desc; |
45 } | 48 } |
46 | 49 |
47 @Id | 50 @Id |
48 @SequenceGenerator( | 51 @SequenceGenerator( |
95 } | 98 } |
96 | 99 |
97 public void setDescription(String description) { | 100 public void setDescription(String description) { |
98 this.description = description; | 101 this.description = description; |
99 } | 102 } |
103 | |
104 @Column(name = "year") | |
105 public BigDecimal getYear() { | |
106 return year; | |
107 } | |
108 | |
109 public void setYear(BigDecimal year) { | |
110 this.year = year; | |
111 } | |
100 } | 112 } |
101 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 113 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |