Mercurial > dive4elements > river
diff flys-backend/ChangeLog @ 3333:76c75c8b9ee0
SedDB: Make access to SedDB configurable over conf.xml and provide access to sessions.
flys-backend/trunk@4666 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 14 Jun 2012 15:39:42 +0000 |
parents | aa8ed778c8cc |
children | 2ae732e2c65c |
line wrap: on
line diff
--- a/flys-backend/ChangeLog Thu Jun 14 10:06:34 2012 +0000 +++ b/flys-backend/ChangeLog Thu Jun 14 15:39:42 2012 +0000 @@ -1,3 +1,59 @@ +2012-06-14 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + Make access to SedDB configurable over conf.xml and provide + access to sessions. + + * src/main/java/de/intevation/flys/backend/SessionFactoryProvider.java: + Moved FLYS specific stuff out into the concept of credential classes + which provides the user, password, dialect, driver, url and the + Hibernate classes to bind. + + * src/main/java/de/intevation/flys/backend/Credentials.java: New. + Abstact class to provide the data needed for the SessionFactoryProvider. + + * src/main/java/de/intevation/flys/backend/FLYSCredentials.java: New. + Extends Credentials to serve the FLYS specific stuff. + + * src/main/java/de/intevation/flys/backend/SedDBCredentials.java: New. + Extends Credentials to serve the SedDB specific stuff. The parameters + are drawn from conf.xml in the form: + + <artifact-database> + ... + <seddb-database> + <user>USER</user> + <password>PASSWORD</password> + <driver>DRIVER</driver> + <url>URL</url> + <dialect>DIALECT</dialect> + </seddb-database> + ... + </artifact-database> + + If absent defaults are: + - user: seddb + - password: seddb + - driver: org.postgresql.Driver + - url: jdbc:postgresql://localhost:5432/seddb + - dialect: org.hibernate.dialect.PostgreSQLDialect + + Defaults can be overwritten with system properties: + - user: flys.seddb.user + - password: flys.seddb.password + - driver: flys.seddb.driver + - url: flys.seddb.url + - dialect: flys.seddb.dialect + + * src/main/java/de/intevation/flys/backend/SedDBSessionHolder.java: New. + Use this if you want to establish a session to the SedDB! + Works like the SessionHolder. + + * src/main/java/de/intevation/flys/backend/SessionHolder.java: + Add Override annotation. This holder gives you a session + to the FLYS database. + + * src/main/java/de/intevation/flys/App.java: Adjusted. + 2012-06-14 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/seddb/model/*.java: Hibernate access to