blob: 5fbd9a9e8dc30f6223a479c482d55d6131711798 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package org.openecomp.sdcrests.item.rest.mapping;
import org.openecomp.sdc.versioning.dao.types.Version;
import org.openecomp.sdcrests.item.types.VersionDto;
import org.openecomp.sdcrests.mapping.MappingBase;
public class MapVersionToDto extends MappingBase<Version, VersionDto> {
@Override
public void doMapping(Version source, VersionDto target) {
target.setId(source.getId());
target.setName(source.getName());
target.setDescription(source.getDescription());
target.setBaseId(source.getBaseId());
target.setStatus(source.getStatus());
target.setState(source.getState());
target.setCreationTime(source.getCreationTime());
target.setModificationTime(source.getModificationTime());
target.setAdditionalInfo(source.getAdditionalInfo());
}
}
|