String dbType = this.dataSourceConfigDao.getDbType(dataSourceName);
if(StringUtils.isBlank(dbType)) {
throw new RuntimeException("请选择数据源!");
}
MetadataDao metadataDao = DaoFactory.getInstance(dbType).getMetadataDao();
metadataDao.setPropertyTypeConverter(new JavaTypeConverter());
tableComments = metadataDao.getTableComments(dataSourceName, tableName);
fieldMetadatas = metadataDao.getTableColumnMetadata(dataSourceName, tableName);
}
modelMetadata.setModelDescription(tableComments);