From 9c8f59ee25341300f7d8d3784c9261c39e7e6350 Mon Sep 17 00:00:00 2001 From: mdb Date: Fri, 1 Jun 2007 19:53:09 +0000 Subject: [PATCH] Patch from Zell to fix cache keys. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2108 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/jdbc/depot/Key.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/samskivert/jdbc/depot/Key.java b/src/java/com/samskivert/jdbc/depot/Key.java index 54fa6500..4e62e3aa 100644 --- a/src/java/com/samskivert/jdbc/depot/Key.java +++ b/src/java/com/samskivert/jdbc/depot/Key.java @@ -42,7 +42,7 @@ import com.samskivert.util.StringUtil; * a convenience, and may also be instantiated explicitly. */ public class Key extends Where - implements CacheKey, CacheInvalidator + implements CacheKey, CacheInvalidator, Serializable { /** * Constructs a new single-column {@code Key} with the given value. @@ -151,7 +151,7 @@ public class Key extends Where // from CacheKey public Serializable getCacheKey () { - return _values; + return this; // TODO: Optimally return a special class here containing only _values. } // from CacheInvalidator