0448407b99e76021ec7f1d75176588b73d2b3474
[sdc.git] /
1 package org.openecomp.sdcrests.item.rest.mapping;
2
3 import org.openecomp.sdc.versioning.types.Item;
4 import org.openecomp.sdcrests.item.types.ItemDto;
5 import org.openecomp.sdcrests.mapping.MappingBase;
6
7 public class MapItemToDto extends MappingBase<Item, ItemDto> {
8   @Override
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());
14     target.setOwner(source.getOwner());
15   }
16 }