bc8a7d20d4c036faaac418dbb68204be039fb0fb
[sdc.git] /
1 package org.openecomp.sdcrests.vsp.rest.mapping;
2
3 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComponentDependencyModelEntity;
4 import org.openecomp.sdcrests.mapping.MappingBase;
5 import org.openecomp.sdcrests.vendorsoftwareproducts.types.ComponentDependencyModel;
6
7 public class MapComponentDependencyModelEntityToDto extends
8     MappingBase<ComponentDependencyModelEntity, ComponentDependencyModel> {
9
10   @Override
11   public void doMapping(ComponentDependencyModelEntity source,
12                         ComponentDependencyModel target) {
13    target.setSourceId(source.getSourceComponentId());
14     target.setTargetId(source.getTargetComponentId());
15     target.setRelationType(source.getRelation());
16   }
17 }