Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/ImportPorosityValue.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | cdef048c4ac5 |
children | 392bbcd8a88b 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
60 | 60 |
61 public PorosityValue getPeer(Porosity porosity) { | 61 public PorosityValue getPeer(Porosity porosity) { |
62 log.info("get peer"); | 62 log.info("get peer"); |
63 | 63 |
64 if (peer == null) { | 64 if (peer == null) { |
65 Session session = ImporterSession.getInstance().getDatabaseSession(); | 65 Session session = ImporterSession.getInstance() |
66 .getDatabaseSession(); | |
66 | 67 |
67 Query query = session.createQuery( | 68 Query query = session.createQuery( |
68 "from PorosityValue where " + | 69 "from PorosityValue " |
69 " porosity=:porosity and " + | 70 + "where porosity=:porosity " |
70 " station between :station - 0.0001f and :station + 0.0001f and" + | 71 + "and station between :station - 0.0001f " |
71 " porosityValue between :poros -0.0001f and :poros + 0.0001f and" + | 72 + " and :station + 0.0001f " |
72 " description=:description"); | 73 + "and porosityValue between :poros -0.0001f " |
74 + " and :poros + 0.0001f " | |
75 + "and description=:description"); | |
73 | 76 |
74 query.setParameter("porosity", porosity); | 77 query.setParameter("porosity", porosity); |
75 query.setParameter("station", station.floatValue()); | 78 query.setParameter("station", station.floatValue()); |
76 query.setParameter("poros", this.porosity.floatValue()); | 79 query.setParameter("poros", this.porosity.floatValue()); |
77 query.setParameter("description", description); | 80 query.setParameter("description", description); |