comparison 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
comparison
equal deleted inserted replaced
3332:aa8ed778c8cc 3333:76c75c8b9ee0
1 2012-06-14 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2
3 Make access to SedDB configurable over conf.xml and provide
4 access to sessions.
5
6 * src/main/java/de/intevation/flys/backend/SessionFactoryProvider.java:
7 Moved FLYS specific stuff out into the concept of credential classes
8 which provides the user, password, dialect, driver, url and the
9 Hibernate classes to bind.
10
11 * src/main/java/de/intevation/flys/backend/Credentials.java: New.
12 Abstact class to provide the data needed for the SessionFactoryProvider.
13
14 * src/main/java/de/intevation/flys/backend/FLYSCredentials.java: New.
15 Extends Credentials to serve the FLYS specific stuff.
16
17 * src/main/java/de/intevation/flys/backend/SedDBCredentials.java: New.
18 Extends Credentials to serve the SedDB specific stuff. The parameters
19 are drawn from conf.xml in the form:
20
21 <artifact-database>
22 ...
23 <seddb-database>
24 <user>USER</user>
25 <password>PASSWORD</password>
26 <driver>DRIVER</driver>
27 <url>URL</url>
28 <dialect>DIALECT</dialect>
29 </seddb-database>
30 ...
31 </artifact-database>
32
33 If absent defaults are:
34 - user: seddb
35 - password: seddb
36 - driver: org.postgresql.Driver
37 - url: jdbc:postgresql://localhost:5432/seddb
38 - dialect: org.hibernate.dialect.PostgreSQLDialect
39
40 Defaults can be overwritten with system properties:
41 - user: flys.seddb.user
42 - password: flys.seddb.password
43 - driver: flys.seddb.driver
44 - url: flys.seddb.url
45 - dialect: flys.seddb.dialect
46
47 * src/main/java/de/intevation/flys/backend/SedDBSessionHolder.java: New.
48 Use this if you want to establish a session to the SedDB!
49 Works like the SessionHolder.
50
51 * src/main/java/de/intevation/flys/backend/SessionHolder.java:
52 Add Override annotation. This holder gives you a session
53 to the FLYS database.
54
55 * src/main/java/de/intevation/flys/App.java: Adjusted.
56
1 2012-06-14 Sascha L. Teichmann <sascha.teichmann@intevation.de> 57 2012-06-14 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2 58
3 * src/main/java/de/intevation/seddb/model/*.java: Hibernate access to 59 * src/main/java/de/intevation/seddb/model/*.java: Hibernate access to
4 SedDB generated by Eclipse (ugly formatted, but compiles). 60 SedDB generated by Eclipse (ugly formatted, but compiles).
5 61

http://dive4elements.wald.intevation.org