use of com.haulmont.cuba.core.global.MetadataTools in project cuba by cuba-platform.
the class EntityImportView method addLocalProperties.
public EntityImportView addLocalProperties() {
Metadata metadata = AppBeans.get(Metadata.class);
MetaClass metaClass = metadata.getClassNN(entityClass);
MetadataTools metadataTools = metadata.getTools();
metaClass.getProperties().stream().filter(property -> !property.getRange().isClass() && !metadataTools.isSystem(property)).forEach(metaProperty -> addLocalProperty(metaProperty.getName()));
return this;
}
Aggregations