Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/model/SedimentLoadLSValue.java @ 8032:fd3a24336e6a
SCHEMA CHANGE and Importer (only longitudinal section data so far): only grain fractions given now in schema are valid. We are handling sediment loads, not yields.
author | "Tom Gottfried <tom@intevation.de>" |
---|---|
date | Mon, 14 Jul 2014 15:36:44 +0200 |
parents | c915e99d9e52 |
children | 5f28aa1be795 |
comparison
equal
deleted
inserted
replaced
8031:6954ac9b7591 | 8032:fd3a24336e6a |
---|---|
30 { | 30 { |
31 private static Logger logger = Logger.getLogger(SedimentLoadLSValue.class); | 31 private static Logger logger = Logger.getLogger(SedimentLoadLSValue.class); |
32 | 32 |
33 private Integer id; | 33 private Integer id; |
34 | 34 |
35 private SedimentLoadLS sedimentYield; | 35 private SedimentLoadLS sedimentLoadLS; |
36 | 36 |
37 private Double station; | 37 private Double station; |
38 private Double value; | 38 private Double value; |
39 | |
40 private Unit unit; | |
41 | 39 |
42 | 40 |
43 public SedimentLoadLSValue() { | 41 public SedimentLoadLSValue() { |
44 } | 42 } |
45 | 43 |
46 public SedimentLoadLSValue( | 44 public SedimentLoadLSValue( |
47 SedimentLoadLS sedimentYield, | 45 SedimentLoadLS sedimentLoadLS, |
48 Double station, | 46 Double station, |
49 Double value | 47 Double value |
50 ) { | 48 ) { |
51 this.sedimentYield = sedimentYield; | 49 this.sedimentLoadLS = sedimentLoadLS; |
52 this.station = station; | 50 this.station = station; |
53 this.value = value; | 51 this.value = value; |
54 } | 52 } |
55 | 53 |
56 @Id | 54 @Id |
70 this.id = id; | 68 this.id = id; |
71 } | 69 } |
72 | 70 |
73 @OneToOne | 71 @OneToOne |
74 @JoinColumn(name = "sediment_yield_id" ) | 72 @JoinColumn(name = "sediment_yield_id" ) |
75 public SedimentLoadLS getSedimentYield() { | 73 public SedimentLoadLS getSedimentLoadLS() { |
76 return sedimentYield; | 74 return sedimentLoadLS; |
77 } | 75 } |
78 | 76 |
79 public void setSedimentYield(SedimentLoadLS sedimentYield) { | 77 public void setSedimentLoadLS(SedimentLoadLS sedimentLoadLS) { |
80 this.sedimentYield = sedimentYield; | 78 this.sedimentLoadLS = sedimentLoadLS; |
81 } | 79 } |
82 | 80 |
83 @Column(name="station") | 81 @Column(name="station") |
84 public Double getStation() { | 82 public Double getStation() { |
85 return station; | 83 return station; |