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

import com.eactive.eai.data.entity.onl.submessage.SubMessageItem;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;
import com.eactive.eai.rms.onl.loader.intf.deploy.SubMessageItemDeploy;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = BaseMapperConfig.class)
public interface SubMessageItemDeployMapper extends GenericMapper<SubMessageItemDeploy, SubMessageItem> {

    @Mapping(source = "id.bzwksvckeyname", target = "bzwksvckeyname")
    @Mapping(source = "id.columnname", target = "columnname")
    SubMessageItemDeploy toVo(SubMessageItem subMessageItem);

    @InheritInverseConfiguration
    SubMessageItem toEntity(SubMessageItemDeploy subMessageItemDeploy);

}
