diff artifact-database/src/main/resources/sql/org-h2-driver.properties @ 281:942a54670a72

Made the TTL of a Collection retrievable via getter method. artifacts/trunk@2174 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 21 Jun 2011 10:57:03 +0000
parents e92d5944fe4b
children 190aa68ae7a8
line wrap: on
line diff
--- a/artifact-database/src/main/resources/sql/org-h2-driver.properties	Fri Jun 17 07:40:20 2011 +0000
+++ b/artifact-database/src/main/resources/sql/org-h2-driver.properties	Tue Jun 21 10:57:03 2011 +0000
@@ -138,16 +138,16 @@
 collection.creation.time=SELECT creation from collections WHERE id = ?
 
 collections.select.user= \
-    SELECT c.gid, c.name, c.creation, u.gid FROM \
+    SELECT c.gid, c.name, c.creation, u.gid, c.ttl FROM \
     collections c LEFT OUTER JOIN users u ON c.owner_id = u.id \
     WHERE u.gid = ?
 
 collections.select.all= \
-    SELECT c.gid, c.name, c.creation, u.gid FROM \
+    SELECT c.gid, c.name, c.creation, u.gid, c.ttl FROM \
     collections c LEFT OUTER JOIN users u ON c.owner_id = u.id
 
 collections.select.by.gid= \
-    SELECT id, name, owner_id, creation, last_access, attribute \
+    SELECT id, name, owner_id, creation, last_access, attribute, ttl \
     FROM collections WHERE gid = ?
 
 users.collections=SELECT collection_id, gid, name FROM collections WHERE owner_id = ?

http://dive4elements.wald.intevation.org