Exception in Entity Inspector after wf$CardInfo selected. #PL-6098

This commit is contained in:
Konstantin Krivopustov 2015-10-06 10:16:26 +00:00
parent accfa7ada4
commit 6bd00a6073

View File

@ -286,14 +286,19 @@ public class FetchGroupManager {
private void includeSystemProperties(View view, FetchGroupField parentField, Set<FetchGroupField> fetchGroupFields) { private void includeSystemProperties(View view, FetchGroupField parentField, Set<FetchGroupField> fetchGroupFields) {
Class<? extends Entity> entityClass = view.getEntityClass(); Class<? extends Entity> entityClass = view.getEntityClass();
MetaClass metaClass = metadata.getClassNN(entityClass);
if (BaseEntity.class.isAssignableFrom(entityClass)) { if (BaseEntity.class.isAssignableFrom(entityClass)) {
for (String property : getInterfaceProperties(BaseEntity.class)) { for (String property : getInterfaceProperties(BaseEntity.class)) {
fetchGroupFields.add(createFetchGroupField(entityClass, parentField, property)); if (metadataTools.isPersistent(metaClass.getPropertyNN(property))) {
fetchGroupFields.add(createFetchGroupField(entityClass, parentField, property));
}
} }
} }
if (Updatable.class.isAssignableFrom(entityClass)) { if (Updatable.class.isAssignableFrom(entityClass)) {
for (String property : getInterfaceProperties(Updatable.class)) { for (String property : getInterfaceProperties(Updatable.class)) {
fetchGroupFields.add(createFetchGroupField(entityClass, parentField, property)); if (metadataTools.isPersistent(metaClass.getPropertyNN(property))) {
fetchGroupFields.add(createFetchGroupField(entityClass, parentField, property));
}
} }
} }
} }