shadowOf is never null, rather it is the default value (PersistentRecord.class)

which we should studiously ignore.
This commit is contained in:
Michael Bayne
2007-08-22 18:03:44 +00:00
parent 97fed4e7d9
commit d652140afb
@@ -166,7 +166,7 @@ public class SelectClause<T extends PersistentRecord> extends QueryClause
Computed computed = _pClass.getAnnotation(Computed.class);
if (computed != null) {
Class<? extends PersistentRecord> shadowClass = computed.shadowOf();
if (shadowClass != null) {
if (!PersistentRecord.class.equals(shadowClass)) {
classSet.add(shadowClass);
}
}