changeset 760:c8a2fbc612be

Register the backend model. flys-backend/trunk@2108 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 14 Jun 2011 13:31:34 +0000
parents 9f2204ed79ed
children 3170fe2e7661
files flys-backend/ChangeLog flys-backend/src/main/java/de/intevation/flys/backend/SessionFactoryProvider.java
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/ChangeLog	Tue Jun 14 13:13:58 2011 +0000
+++ b/flys-backend/ChangeLog	Tue Jun 14 13:31:34 2011 +0000
@@ -1,3 +1,14 @@
+2011-06-14	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	 * src/main/java/de/intevation/flys/backend/SessionFactoryProvider.java:
+	   Register backend model.
+
+	 * src/main/java/de/intevation/flys/importer/ImportEdge.java: New. Model
+	   for importing the edges.
+
+	 * src/main/java/de/intevation/flys/importer/AnnotationsParser.java:
+	   Parses the edges of an annotation, too.
+
 2011-06-14	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* doc/schema/postgresql.sql: Added table edges to model 'Kanten' of an annotation.
--- a/flys-backend/src/main/java/de/intevation/flys/backend/SessionFactoryProvider.java	Tue Jun 14 13:13:58 2011 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/backend/SessionFactoryProvider.java	Tue Jun 14 13:31:34 2011 +0000
@@ -13,6 +13,7 @@
 import de.intevation.flys.model.Attribute;
 import de.intevation.flys.model.DischargeTable;
 import de.intevation.flys.model.DischargeTableValue;
+import de.intevation.flys.model.Edge;
 import de.intevation.flys.model.Gauge;
 import de.intevation.flys.model.MainValueType;
 import de.intevation.flys.model.NamedMainValue;
@@ -116,6 +117,7 @@
         cfg.addAnnotatedClass(Attribute.class);
         cfg.addAnnotatedClass(DischargeTable.class);
         cfg.addAnnotatedClass(DischargeTableValue.class);
+        cfg.addAnnotatedClass(Edge.class);
         cfg.addAnnotatedClass(Gauge.class);
         cfg.addAnnotatedClass(MainValueType.class);
         cfg.addAnnotatedClass(NamedMainValue.class);

http://dive4elements.wald.intevation.org