Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/SedimentDensityValue.java @ 2817:8979f2294af9
Finished parsing MINFO specific sediment density.
flys-backend/trunk@4234 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 13 Apr 2012 11:45:29 +0000 |
parents | a36a5407acbf |
children | be9e28cff0c4 |
comparison
equal
deleted
inserted
replaced
2816:70b4a31a3306 | 2817:8979f2294af9 |
---|---|
18 @Table(name = "sediment_density_values") | 18 @Table(name = "sediment_density_values") |
19 public class SedimentDensityValue implements Serializable { | 19 public class SedimentDensityValue implements Serializable { |
20 | 20 |
21 private Integer id; | 21 private Integer id; |
22 | 22 |
23 private Range station; | 23 private SedimentDensity sedimentDensity; |
24 | 24 |
25 private BigDecimal station; | |
25 private BigDecimal density; | 26 private BigDecimal density; |
26 | 27 |
27 private String description; | 28 private String description; |
28 | 29 |
29 | 30 |
30 public SedimentDensityValue() { | 31 public SedimentDensityValue() { |
31 } | 32 } |
32 | 33 |
33 | 34 |
34 public SedimentDensityValue(Range station, BigDecimal density, String desc) { | 35 public SedimentDensityValue( |
35 this.station = station; | 36 SedimentDensity sedimentDensity, |
36 this.density = density; | 37 BigDecimal station, |
37 this.description = desc; | 38 BigDecimal density, |
39 String desc | |
40 ) { | |
41 this.sedimentDensity = sedimentDensity; | |
42 this.station = station; | |
43 this.density = density; | |
44 this.description = desc; | |
38 } | 45 } |
39 | 46 |
40 @Id | 47 @Id |
41 @SequenceGenerator( | 48 @SequenceGenerator( |
42 name = "SEQUENCE_SEDIMENT_DENSITY_VALUES_ID_SEQ", | 49 name = "SEQUENCE_SEDIMENT_DENSITY_VALUES_ID_SEQ", |
53 public void setId(Integer id) { | 60 public void setId(Integer id) { |
54 this.id = id; | 61 this.id = id; |
55 } | 62 } |
56 | 63 |
57 @OneToOne | 64 @OneToOne |
58 @JoinColumn(name = "station_id") | 65 @JoinColumn(name = "sediment_density_id") |
59 public Range getStation() { | 66 public SedimentDensity getSedimentDensity() { |
67 return sedimentDensity; | |
68 } | |
69 | |
70 public void setSedimentDensity(SedimentDensity sedimentDensity) { | |
71 this.sedimentDensity = sedimentDensity; | |
72 } | |
73 | |
74 @Column(name = "station") | |
75 public BigDecimal getStation() { | |
60 return station; | 76 return station; |
61 } | 77 } |
62 | 78 |
63 public void setStation(Range station) { | 79 public void setStation(BigDecimal station) { |
64 this.station = station; | 80 this.station = station; |
65 } | 81 } |
66 | 82 |
67 @Column(name = "density") | 83 @Column(name = "density") |
68 public BigDecimal getDensity() { | 84 public BigDecimal getDensity() { |