提交 c26016ca 编写于 作者: S Serge Rider

#8520 Mapping page logging

上级 89141f90
......@@ -395,6 +395,7 @@ public class StreamProducerPagePreview extends ActiveWizardPage<DataTransferWiza
UIUtils.packColumns(previewTable, false);
if (finalError != null) {
log.error(finalError);
DBWorkbench.getPlatformUI().showError("Load entity meta", "Can't load entity attributes", finalError);
}
});
......@@ -563,18 +564,22 @@ public class StreamProducerPagePreview extends ActiveWizardPage<DataTransferWiza
final StreamProducerSettings settings = getProducerSettings();
List<DataTransferPipe> dataPipes = getWizard().getSettings().getDataPipes();
if (dataPipes.isEmpty()) {
setErrorMessage("No entities specified");
return false;
}
for (DataTransferPipe pipe : dataPipes) {
DBSObject databaseObject = pipe.getConsumer().getDatabaseObject();
if (!(databaseObject instanceof DBSEntity)) {
setErrorMessage("Wrong input object");
return false;
}
StreamProducerSettings.EntityMapping entityMapping = settings.getEntityMapping((DBSEntity) databaseObject);
if (!entityMapping.isComplete()) {
setErrorMessage("Set mappings for all columns");
return false;
}
}
setErrorMessage(null);
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册