aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/api/openecomp-sdc-rest-webapp/item-rest/item-rest-services/src/main/java/org/openecomp/sdcrests/item/rest/mapping/MapRevisionToDto.java
blob: 861f571c5fac76ec1fe79c6577cb06848aa2727a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package org.openecomp.sdcrests.item.rest.mapping;

import org.openecomp.sdc.versioning.dao.types.Revision;
import org.openecomp.sdcrests.item.types.RevisionDto;
import org.openecomp.sdcrests.mapping.MappingBase;

public class MapRevisionToDto extends MappingBase<Revision, RevisionDto> {
  @Override
  public void doMapping(Revision source, RevisionDto target) {
    target.setId(source.getId());
    target.setMessage(source.getMessage());
    target.setUser(source.getUser());
    target.setTime(source.getTime());
  }
}