summaryrefslogtreecommitdiffstats
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/MapComponentEntityToComponentCreationDto.java
blob: 372a83ac78bfc63769a945cadab52f1b6e58d245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package org.openecomp.sdcrests.vsp.rest.mapping;

import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComponentEntity;
import org.openecomp.sdcrests.mapping.MappingBase;
import org.openecomp.sdcrests.vendorsoftwareproducts.types.ComponentCreationDto;

public class MapComponentEntityToComponentCreationDto extends MappingBase<ComponentEntity,
    ComponentCreationDto> {
  @Override
  public void doMapping(ComponentEntity source, ComponentCreationDto target) {
    target.setVfcId(source.getId());
  }
}