comparison Changelog @ 41:5e4bc24ea438

Made serilization more flexible. DB update required!!! Fixed problem with touching artifacts in database. artifacts/trunk@119 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 23 Sep 2009 16:55:12 +0000
parents af22d4de275c
children 5fbd8e65bdf5
comparison
equal deleted inserted replaced
40:af22d4de275c 41:5e4bc24ea438
1 2009-09-23 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2
3 * artifact-database/doc/schema-pg.sql, artifact-database/doc/schema-h2.sql:
4 Added column 'factory' to artifacts table to store the name of the
5 creating factory.
6
7 !!!
8 !!! THIS BREAKS OLD ARTIFACT DATABASES!
9 !!!
10 !!! To update old databases issue at database prompt:
11 !!! ALTER TABLE artifacts ADD COLUMN factory VARCHAR(256) NOT NULL;
12 !!!
13
14 * artifact-database/src/main/resources/sql/org-h2-driver.properties,
15 artifact-database/src/main/resources/sql/org-postgresql-driver.properties:
16 Fixed issue in SQL statements for touching artifacts. Fill factory name
17 into artifact relation.
18
19 * artifacts/src/main/java/de/intevation/artifacts/ArtifactSerializer.java:
20 To allow different serialization models each ArtifactFactory has
21 serializer for the artifacts.
22
23 * artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java:
24 Add method to return ArtifactSerializer.
25
26 * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactSerializer.java:
27 Uses Java standard object serialisation.
28
29 * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactFactory.java:
30 Uses th DefaultArtifactSerializer as ArtifactSerializer
31
32 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java:
33 The serialisation method is select via the 'factory' column of the 'artifacts'
34 table.
35
36 * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java,
37 artifact-database/src/main/java/de/intevation/artifactdatabase/App.java,
38 artifact-database/src/main/java/de/intevation/artifactdatabase/rest/FactoriesResource.java,
39 artifact-database/src/main/java/de/intevation/artifactdatabase/DatabaseCleaner.java:
40 Adjusted to fit the new serialisation model.
41
1 2009-09-23 Sascha L. Teichmann <sascha.teichmann@intevation.de> 42 2009-09-23 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2 43
3 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/BaseResource.java: 44 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/BaseResource.java:
4 New. Base class to log RuntimeExceptions to log4j error log. 45 New. Base class to log RuntimeExceptions to log4j error log.
5 46

http://dive4elements.wald.intevation.org