From 9de9835b521d3154e3e9906b4ec03f2772f92ffc Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 1 Jun 2007 19:53:09 +0000 Subject: [PATCH] Patch from Zell to fix cache keys. --- 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 54fa650..4e62e3a 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