From 6e232554c1816e8819b19971ea11c6b387281402 Mon Sep 17 00:00:00 2001 From: mdb 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. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2209 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- 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 66b4cddb..fbefa049 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); } }