Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportDischargeTableValue.java @ 500:d50cd3a632e0
Importer: Use BigDecimals in hashing to prevent numerical problems. Cache ranges globally, too.
flys-backend/trunk@1854 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 08 May 2011 22:41:07 +0000 |
parents | 8ab04de0b879 |
children |
comparison
equal
deleted
inserted
replaced
499:cce054f27dac | 500:d50cd3a632e0 |
---|---|
1 package de.intevation.flys.importer; | 1 package de.intevation.flys.importer; |
2 | 2 |
3 import java.math.BigDecimal; | 3 import java.math.BigDecimal; |
4 import java.util.List; | |
5 | |
6 import org.hibernate.Session; | |
7 import org.hibernate.Query; | |
8 | 4 |
9 import de.intevation.flys.model.DischargeTable; | 5 import de.intevation.flys.model.DischargeTable; |
10 import de.intevation.flys.model.DischargeTableValue; | 6 import de.intevation.flys.model.DischargeTableValue; |
11 | 7 |
12 | 8 |
13 public class ImportDischargeTableValue | 9 public class ImportDischargeTableValue |
14 { | 10 { |
15 private Integer id; | |
16 | |
17 private BigDecimal q; | 11 private BigDecimal q; |
18 private BigDecimal w; | 12 private BigDecimal w; |
19 | 13 |
20 private ImportDischargeTable dischargeTable; | |
21 | |
22 private DischargeTableValue peer; | 14 private DischargeTableValue peer; |
23 | |
24 | 15 |
25 public ImportDischargeTableValue() { | 16 public ImportDischargeTableValue() { |
26 } | 17 } |
27 | 18 |
28 | 19 |
29 public ImportDischargeTableValue(BigDecimal q, BigDecimal w) { | 20 public ImportDischargeTableValue(BigDecimal q, BigDecimal w) { |
30 this.dischargeTable = dischargeTable; | 21 this.q = q; |
31 this.q = q; | 22 this.w = w; |
32 this.w = w; | |
33 } | 23 } |
34 | 24 |
35 | 25 |
36 public DischargeTableValue getPeer(DischargeTable dischargeTable) { | 26 public DischargeTableValue getPeer(DischargeTable dischargeTable) { |
37 if (peer == null) { | 27 if (peer == null) { |