package com.eactive.eai.rms.onl.loader.transform.mapper;

import com.eactive.eai.data.entity.onl.transformer.transform.TransformItemEntity;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;
import com.eactive.eai.rms.onl.loader.transform.deploy.TransformItemDeploy;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = BaseMapperConfig.class)
public interface TransformItemDeployMapper extends GenericMapper<TransformItemDeploy, TransformItemEntity> {

   @Mapping(source = "id.cnvsnname", target = "cnvsnname")
   @Mapping(source = "id.cnvsnrsultitempathname", target = "cnvsnrsultitempathname")
   TransformItemDeploy toVo(TransformItemEntity entity);

   @InheritInverseConfiguration
   TransformItemEntity toEntity(TransformItemDeploy vo);

}
