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