Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/model/SedimentLoadLS.java @ 8059:bde5f5ec7c72
SCHEMA CHANGE and Importer: get time intervals of SQ-relations from metalines in sediment load files.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 18 Jul 2014 18:01:49 +0200 |
parents | fd3a24336e6a |
children | 5f28aa1be795 |
comparison
equal
deleted
inserted
replaced
8058:fbe3ba5a480e | 8059:bde5f5ec7c72 |
---|---|
38 | 38 |
39 private Unit unit; | 39 private Unit unit; |
40 | 40 |
41 private TimeInterval timeInterval; | 41 private TimeInterval timeInterval; |
42 | 42 |
43 private TimeInterval sqTimeInterval; | |
44 | |
43 private String description; | 45 private String description; |
44 | 46 |
45 private List<SedimentLoadLSValue> values; | 47 private List<SedimentLoadLSValue> values; |
46 | 48 |
47 private Integer kind; | 49 private Integer kind; |
73 | 75 |
74 public SedimentLoadLS( | 76 public SedimentLoadLS( |
75 River river, | 77 River river, |
76 Unit unit, | 78 Unit unit, |
77 TimeInterval timeInterval, | 79 TimeInterval timeInterval, |
80 TimeInterval sqTimeInterval, | |
78 GrainFraction grainFraction, | 81 GrainFraction grainFraction, |
79 String description | 82 String description |
80 ) { | 83 ) { |
81 this(river, unit, timeInterval, grainFraction); | 84 this(river, unit, timeInterval, grainFraction); |
82 | 85 |
83 this.description = description; | 86 this.sqTimeInterval = sqTimeInterval; |
87 this.description = description; | |
84 } | 88 } |
85 | 89 |
86 @Id | 90 @Id |
87 @SequenceGenerator( | 91 @SequenceGenerator( |
88 name = "SEQUENCE_SEDIMENT_YIELD_ID_SEQ", | 92 name = "SEQUENCE_SEDIMENT_YIELD_ID_SEQ", |
138 | 142 |
139 public void setTimeInterval(TimeInterval timeInterval) { | 143 public void setTimeInterval(TimeInterval timeInterval) { |
140 this.timeInterval = timeInterval; | 144 this.timeInterval = timeInterval; |
141 } | 145 } |
142 | 146 |
147 @OneToOne | |
148 @JoinColumn(name = "sq_time_interval_id") | |
149 public TimeInterval getSqTimeInterval() { | |
150 return sqTimeInterval; | |
151 } | |
152 | |
153 public void setSqTimeInterval(TimeInterval sqTimeInterval) { | |
154 this.sqTimeInterval = sqTimeInterval; | |
155 } | |
156 | |
143 @Column(name = "description") | 157 @Column(name = "description") |
144 public String getDescription() { | 158 public String getDescription() { |
145 return description; | 159 return description; |
146 } | 160 } |
147 | 161 |