Merge "Other option for license agreement term"
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / vendor-software-products-rest / vendor-software-products-rest-services / src / main / java / org / openecomp / sdcrests / vsp / rest / mapping / MapComponentDependencyModelEntityToDto.java
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 }