diff flys-backend/src/main/java/de/intevation/flys/App.java @ 189:bc3747a371cc

First part of parsing main values. flys-backend/trunk@1520 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 18 Mar 2011 16:12:24 +0000
parents 249390dd24e7
children ed38839a6b08
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/App.java	Fri Mar 18 12:10:33 2011 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/App.java	Fri Mar 18 16:12:24 2011 +0000
@@ -10,7 +10,8 @@
 import de.intevation.flys.model.DischargeTableValue;
 import de.intevation.flys.model.Gauge;
 import de.intevation.flys.model.MainValueType;
-import de.intevation.flys.model.NamedMainValues;
+import de.intevation.flys.model.NamedMainValue;
+import de.intevation.flys.model.MainValue;
 import de.intevation.flys.model.Position;
 import de.intevation.flys.model.Range;
 import de.intevation.flys.model.River;
@@ -62,7 +63,8 @@
         cfg.addAnnotatedClass(DischargeTableValue.class);
         cfg.addAnnotatedClass(Gauge.class);
         cfg.addAnnotatedClass(MainValueType.class);
-        cfg.addAnnotatedClass(NamedMainValues.class);
+        cfg.addAnnotatedClass(NamedMainValue.class);
+        cfg.addAnnotatedClass(MainValue.class);
         cfg.addAnnotatedClass(Position.class);
         cfg.addAnnotatedClass(Range.class);
         cfg.addAnnotatedClass(River.class);
@@ -102,6 +104,8 @@
 
         cfg.mergeProperties(props);
 
+        /*
+
         SessionFactory sessionFactory = cfg.buildSessionFactory();
 
         Session session = sessionFactory.openSession();
@@ -115,6 +119,7 @@
 
         session.getTransaction().commit();
         session.close();
+        */
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org