Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
188:003ac16812dd | 189:bc3747a371cc |
---|---|
8 import de.intevation.flys.model.Attribute; | 8 import de.intevation.flys.model.Attribute; |
9 import de.intevation.flys.model.DischargeTable; | 9 import de.intevation.flys.model.DischargeTable; |
10 import de.intevation.flys.model.DischargeTableValue; | 10 import de.intevation.flys.model.DischargeTableValue; |
11 import de.intevation.flys.model.Gauge; | 11 import de.intevation.flys.model.Gauge; |
12 import de.intevation.flys.model.MainValueType; | 12 import de.intevation.flys.model.MainValueType; |
13 import de.intevation.flys.model.NamedMainValues; | 13 import de.intevation.flys.model.NamedMainValue; |
14 import de.intevation.flys.model.MainValue; | |
14 import de.intevation.flys.model.Position; | 15 import de.intevation.flys.model.Position; |
15 import de.intevation.flys.model.Range; | 16 import de.intevation.flys.model.Range; |
16 import de.intevation.flys.model.River; | 17 import de.intevation.flys.model.River; |
17 import de.intevation.flys.model.TimeInterval; | 18 import de.intevation.flys.model.TimeInterval; |
18 import de.intevation.flys.model.WstColumn; | 19 import de.intevation.flys.model.WstColumn; |
60 cfg.addAnnotatedClass(Attribute.class); | 61 cfg.addAnnotatedClass(Attribute.class); |
61 cfg.addAnnotatedClass(DischargeTable.class); | 62 cfg.addAnnotatedClass(DischargeTable.class); |
62 cfg.addAnnotatedClass(DischargeTableValue.class); | 63 cfg.addAnnotatedClass(DischargeTableValue.class); |
63 cfg.addAnnotatedClass(Gauge.class); | 64 cfg.addAnnotatedClass(Gauge.class); |
64 cfg.addAnnotatedClass(MainValueType.class); | 65 cfg.addAnnotatedClass(MainValueType.class); |
65 cfg.addAnnotatedClass(NamedMainValues.class); | 66 cfg.addAnnotatedClass(NamedMainValue.class); |
67 cfg.addAnnotatedClass(MainValue.class); | |
66 cfg.addAnnotatedClass(Position.class); | 68 cfg.addAnnotatedClass(Position.class); |
67 cfg.addAnnotatedClass(Range.class); | 69 cfg.addAnnotatedClass(Range.class); |
68 cfg.addAnnotatedClass(River.class); | 70 cfg.addAnnotatedClass(River.class); |
69 cfg.addAnnotatedClass(TimeInterval.class); | 71 cfg.addAnnotatedClass(TimeInterval.class); |
70 cfg.addAnnotatedClass(WstColumn.class); | 72 cfg.addAnnotatedClass(WstColumn.class); |
100 Environment.URL, | 102 Environment.URL, |
101 "jdbc:postgresql://localhost:54321/flystest1"); | 103 "jdbc:postgresql://localhost:54321/flystest1"); |
102 | 104 |
103 cfg.mergeProperties(props); | 105 cfg.mergeProperties(props); |
104 | 106 |
107 /* | |
108 | |
105 SessionFactory sessionFactory = cfg.buildSessionFactory(); | 109 SessionFactory sessionFactory = cfg.buildSessionFactory(); |
106 | 110 |
107 Session session = sessionFactory.openSession(); | 111 Session session = sessionFactory.openSession(); |
108 session.beginTransaction(); | 112 session.beginTransaction(); |
109 | 113 |
113 | 117 |
114 System.out.println("river id: " + river.getId()); | 118 System.out.println("river id: " + river.getId()); |
115 | 119 |
116 session.getTransaction().commit(); | 120 session.getTransaction().commit(); |
117 session.close(); | 121 session.close(); |
122 */ | |
118 } | 123 } |
119 } | 124 } |
120 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 125 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |