1 package org.openecomp.sdcrests.item.rest.mapping;
3 import org.openecomp.sdc.versioning.types.Item;
4 import org.openecomp.sdcrests.item.types.ItemDto;
5 import org.openecomp.sdcrests.mapping.MappingBase;
7 public class MapItemToDto extends MappingBase<Item, ItemDto> {
9 public void doMapping(Item source, ItemDto target) {
10 target.setId(source.getId());
11 target.setType(source.getType());
12 target.setName(source.getName());
13 target.setDescription(source.getDescription());