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

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

@Mapper(config = BaseMapperConfig.class)
public interface TransformTypeDeployMapper extends GenericMapper<TransformTypeDeploy, TransformTypeEntity> {

    @Mapping(source = "id.cnvsnname", target = "cnvsnname")
    @Mapping(source = "id.loutname", target = "loutname")
    @Mapping(source = "id.sourcrsultdstcd", target = "sourcrsultdstcd")
    TransformTypeDeploy toVo(TransformTypeEntity transformTypeEntity);

    @InheritInverseConfiguration
    TransformTypeEntity toEntity(TransformTypeDeploy transformTypeDeploy);

}
