shadowOf is never null, rather it is the default value (PersistentRecord.class)
which we should studiously ignore.
This commit is contained in:
@@ -166,7 +166,7 @@ public class SelectClause<T extends PersistentRecord> extends QueryClause
|
|||||||
Computed computed = _pClass.getAnnotation(Computed.class);
|
Computed computed = _pClass.getAnnotation(Computed.class);
|
||||||
if (computed != null) {
|
if (computed != null) {
|
||||||
Class<? extends PersistentRecord> shadowClass = computed.shadowOf();
|
Class<? extends PersistentRecord> shadowClass = computed.shadowOf();
|
||||||
if (shadowClass != null) {
|
if (!PersistentRecord.class.equals(shadowClass)) {
|
||||||
classSet.add(shadowClass);
|
classSet.add(shadowClass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user