# HG changeset patch # User Tim Englich # Date 1252935395 0 # Node ID 251e8904d6c283195372d8d017329db259ec3a12 # Parent c2d53bd30ab84429dfe7a01d1c48636868cccc87 Make the Interfaces Serializable to make them usable in the Artifactdatabase. Bug Fixed in SQL-Statement artifacts/trunk@81 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r c2d53bd30ab8 -r 251e8904d6c2 Changelog --- a/Changelog Sun Sep 13 14:50:53 2009 +0000 +++ b/Changelog Mon Sep 14 13:36:35 2009 +0000 @@ -1,3 +1,11 @@ +2009-09-14 Tim Englich + + * src/main/java/de/intevation/artifacts/ArtifactFactory.java Edited: + Make Objects Serializable + + * src/main/resources/sql/org-h2-driver.properties: + Bug Fixed in SQL-Query + 2009-09-13 Sascha L. Teichmann Refactored the persistent handling of the artifacts in the diff -r c2d53bd30ab8 -r 251e8904d6c2 artifact-database/src/main/resources/sql/org-h2-driver.properties --- a/artifact-database/src/main/resources/sql/org-h2-driver.properties Sun Sep 13 14:50:53 2009 +0000 +++ b/artifact-database/src/main/resources/sql/org-h2-driver.properties Mon Sep 14 13:36:35 2009 +0000 @@ -2,7 +2,7 @@ artifacts.insert=INSERT INTO artifacts \ (id, gid, creation, last_access, ttl, data) \ - VALUES (?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?, data) + VALUES (?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?, ?) artifacts.update=UPDATE artifacts SET last_access = CURRENT_TIMESTAMP, \ data = ? WHERE id = ? diff -r c2d53bd30ab8 -r 251e8904d6c2 artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java --- a/artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java Sun Sep 13 14:50:53 2009 +0000 +++ b/artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java Mon Sep 14 13:36:35 2009 +0000 @@ -1,5 +1,7 @@ package de.intevation.artifacts; +import java.io.Serializable; + import org.w3c.dom.Document; import org.w3c.dom.Node; @@ -8,7 +10,7 @@ * * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) */ -public interface ArtifactFactory +public interface ArtifactFactory extends Serializable { /** * The short name of this factory.