0c923fe82b319d36a1ac278571a199bbcac21f1b
[sdc.git] /
1 package org.openecomp.sdcrests.vsp.rest.mapping;
2
3 import org.openecomp.sdc.common.errors.CoreException;
4 import org.openecomp.sdc.common.errors.ErrorCode;
5 import org.openecomp.sdc.datatypes.error.ErrorLevel;
6 import org.openecomp.sdc.logging.context.impl.MdcDataErrorMessage;
7 import org.openecomp.sdc.logging.types.LoggerConstants;
8 import org.openecomp.sdc.logging.types.LoggerTragetServiceName;
9 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComponentDependencyModelEntity;
10 import org.openecomp.sdc.vendorsoftwareproduct.errors.ComponentDependencyModelErrorBuilder;
11 import org.openecomp.sdcrests.mapping.MappingBase;
12 import org.openecomp.sdcrests.vendorsoftwareproducts.types.ComponentDependencyModel;
13 import org.openecomp.sdcrests.vendorsoftwareproducts.types.ComponentRelationType;
14
15 public class MapComponentDependencyModelEntityToDto extends
16     MappingBase<ComponentDependencyModelEntity, ComponentDependencyModel> {
17
18   @Override
19   public void doMapping(ComponentDependencyModelEntity source,
20                         ComponentDependencyModel target) {
21    target.setSourceId(source.getSourceComponentId());
22     target.setTargetId(source.getTargetComponentId());
23     target.setRelationType(source.getRelation());
24   }
25 }