aboutsummaryrefslogtreecommitdiffstats
path: root/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
blob: bc8a7d20d4c036faaac418dbb68204be039fb0fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.openecomp.sdcrests.vsp.rest.mapping;

import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComponentDependencyModelEntity;
import org.openecomp.sdcrests.mapping.MappingBase;
import org.openecomp.sdcrests.vendorsoftwareproducts.types.ComponentDependencyModel;

public class MapComponentDependencyModelEntityToDto extends
    MappingBase<ComponentDependencyModelEntity, ComponentDependencyModel> {

  @Override
  public void doMapping(ComponentDependencyModelEntity source,
                        ComponentDependencyModel target) {
   target.setSourceId(source.getSourceComponentId());
    target.setTargetId(source.getTargetComponentId());
    target.setRelationType(source.getRelation());
  }
}