*
* @param dataMediaPair
* @return DataMediaPairDO
*/
private DataMediaPairDO modelToDo(DataMediaPair dataMediaPair) {
DataMediaPairDO dataMediaPairDo = new DataMediaPairDO();
try {
dataMediaPairDo.setId(dataMediaPair.getId());
dataMediaPairDo.setPipelineId(dataMediaPair.getPipelineId());
dataMediaPairDo.setSourceDataMediaId(dataMediaPair.getSource().getId());
dataMediaPairDo.setTargetDataMediaId(dataMediaPair.getTarget().getId());
dataMediaPairDo.setFilter(JsonUtils.marshalToString(dataMediaPair.getFilterData()));
dataMediaPairDo.setResolver(JsonUtils.marshalToString(dataMediaPair.getResolverData()));
dataMediaPairDo.setPullWeight(dataMediaPair.getPullWeight());
dataMediaPairDo.setPushWeight(dataMediaPair.getPushWeight());
dataMediaPairDo.setColumnPairMode(dataMediaPair.getColumnPairMode());
dataMediaPairDo.setGmtCreate(dataMediaPair.getGmtCreate());
dataMediaPairDo.setGmtModified(dataMediaPair.getGmtModified());
} catch (Exception e) {
logger.error("ERROR ## change the dataMediaPair Model to Do has an exception", e);
throw new ManagerException(e);
}