comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportSedimentDensity.java @ 3940:aed7aba93718

Improved logging and stabilized minfo import. flys-backend/trunk@5500 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 18 Sep 2012 04:20:33 +0000
parents 8979f2294af9
children 43aa1ac8614b
comparison
equal deleted inserted replaced
3939:686b5a5f9f25 3940:aed7aba93718
76 } 76 }
77 77
78 78
79 public SedimentDensity getPeer(River river) { 79 public SedimentDensity getPeer(River river) {
80 log.info("get peer"); 80 log.info("get peer");
81
82 if (depth == null) {
83 log.warn("cannot store sediment density '" + description + "': no depth");
84 return null;
85 }
86
87 if (unit == null) {
88 log.warn("cannot store sediment density '" + description + "': no unit");
89 return null;
90 }
81 91
82 if (peer == null) { 92 if (peer == null) {
83 Session session = ImporterSession.getInstance().getDatabaseSession(); 93 Session session = ImporterSession.getInstance().getDatabaseSession();
84 94
85 Query query = session.createQuery( 95 Query query = session.createQuery(

http://dive4elements.wald.intevation.org