changeset 9579:67a42c9c46a7

Debug message added
author mschaefer
date Tue, 11 Dec 2018 17:08:36 +0100
parents 3dfcb6e1c4d6
children 839b2aa84dd0
files backend/src/main/java/org/dive4elements/river/importer/sinfo/parsers/CollisionParser.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/sinfo/parsers/CollisionParser.java	Tue Dec 11 14:40:36 2018 +0100
+++ b/backend/src/main/java/org/dive4elements/river/importer/sinfo/parsers/CollisionParser.java	Tue Dec 11 17:08:36 2018 +0100
@@ -33,6 +33,7 @@
 import org.dive4elements.river.model.sinfo.Collision;
 import org.dive4elements.river.model.sinfo.CollisionType;
 import org.dive4elements.river.model.sinfo.CollisionValue;
+import org.hibernate.Session;
 
 /**
  * Reads and parses a collision file
@@ -76,8 +77,10 @@
 
     public CollisionParser(final File importPath, final File rootRelativePath, final ImportRiver river) {
         super(importPath, rootRelativePath, river);
+        logDebug("CollisionParser.new: calling ImporterSession.getInstance");
+        final Session session = ImporterSession.getInstance().getDatabaseSession();
         this.types = new HashMap<>();
-        for (final CollisionType type : CollisionType.getTypes(ImporterSession.getInstance().getDatabaseSession()))
+        for (final CollisionType type : CollisionType.getTypes(session))
             this.types.put(type.getName().trim().toLowerCase(), new CollisionTypeImport(type.getName()));
     }
 

http://dive4elements.wald.intevation.org