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

import com.eactive.eai.data.entity.onl.message.EAIReferenceMessage;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;
import com.eactive.eai.rms.onl.loader.intf.deploy.EAIReferenceMessageDeploy;
import org.hibernate.annotations.Comment;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import javax.persistence.Column;

@Mapper(config = BaseMapperConfig.class)
public interface EAIReferenceMessageDeployMapper extends GenericMapper<EAIReferenceMessageDeploy, EAIReferenceMessage> {

    @Mapping(source = "id.eaisvcname", target = "eaisvcname")
    @Mapping(source = "id.svcprcssno", target = "svcprcssno")
    @Mapping(source = "id.refmsgidno", target = "refmsgidno")
    EAIReferenceMessageDeploy toVo(EAIReferenceMessage eaiReferenceMessage);

    @InheritInverseConfiguration
    EAIReferenceMessage toEntity(EAIReferenceMessageDeploy eaiReferenceMessageDeploy);

}
