Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/SedimentDensity.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 | 7c1dd9c3f6bd |
comparison
equal
deleted
inserted
replaced
2816:70b4a31a3306 | 2817:8979f2294af9 |
---|---|
23 | 23 |
24 private River river; | 24 private River river; |
25 | 25 |
26 private Depth depth; | 26 private Depth depth; |
27 | 27 |
28 private Unit unit; | |
29 | |
28 private List<SedimentDensityValue> values; | 30 private List<SedimentDensityValue> values; |
31 | |
32 private String description; | |
29 | 33 |
30 | 34 |
31 public SedimentDensity() { | 35 public SedimentDensity() { |
32 } | 36 } |
33 | 37 |
34 | 38 |
35 public SedimentDensity(River river, Depth depth) { | 39 public SedimentDensity(River river, Depth depth, Unit unit, String desc) { |
36 this.river = river; | 40 this.river = river; |
37 this.depth = depth; | 41 this.depth = depth; |
42 this.unit = unit; | |
43 this.description = desc; | |
38 } | 44 } |
39 | 45 |
40 @Id | 46 @Id |
41 @SequenceGenerator( | 47 @SequenceGenerator( |
42 name = "SEQUENCE_SEDIMENT_DENSITY_ID_SEQ", | 48 name = "SEQUENCE_SEDIMENT_DENSITY_ID_SEQ", |
72 | 78 |
73 public void setDepth(Depth depth) { | 79 public void setDepth(Depth depth) { |
74 this.depth = depth; | 80 this.depth = depth; |
75 } | 81 } |
76 | 82 |
83 @OneToOne | |
84 @JoinColumn(name = "unit_id") | |
85 public Unit getUnit() { | |
86 return unit; | |
87 } | |
88 | |
89 public void setUnit(Unit unit) { | |
90 this.unit = unit; | |
91 } | |
92 | |
93 @Column(name = "description") | |
94 public String getDescription() { | |
95 return description; | |
96 } | |
97 | |
98 public void setDescription(String description) { | |
99 this.description = description; | |
100 } | |
101 | |
77 @OneToMany | 102 @OneToMany |
78 @JoinColumn(name="sediment_density_id") | 103 @JoinColumn(name="sediment_density_id") |
79 public List<SedimentDensityValue> getValues() { | 104 public List<SedimentDensityValue> getValues() { |
80 return values; | 105 return values; |
106 } | |
107 | |
108 public void setValues(List<SedimentDensityValue> values) { | |
109 this.values = values; | |
81 } | 110 } |
82 | 111 |
83 public void addValue(SedimentDensityValue value) { | 112 public void addValue(SedimentDensityValue value) { |
84 this.values.add(value); | 113 this.values.add(value); |
85 } | 114 } |