From d652140afb46ecd7a095d82105d76de7cc6b6091 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 22 Aug 2007 18:03:44 +0000 Subject: [PATCH] shadowOf is never null, rather it is the default value (PersistentRecord.class) which we should studiously ignore. --- src/java/com/samskivert/jdbc/depot/clause/SelectClause.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/samskivert/jdbc/depot/clause/SelectClause.java b/src/java/com/samskivert/jdbc/depot/clause/SelectClause.java index 66b4cdd..fbefa04 100644 --- a/src/java/com/samskivert/jdbc/depot/clause/SelectClause.java +++ b/src/java/com/samskivert/jdbc/depot/clause/SelectClause.java @@ -166,7 +166,7 @@ public class SelectClause extends QueryClause Computed computed = _pClass.getAnnotation(Computed.class); if (computed != null) { Class shadowClass = computed.shadowOf(); - if (shadowClass != null) { + if (!PersistentRecord.class.equals(shadowClass)) { classSet.add(shadowClass); } }