package com.eactive.eai.rms.onl.manage.serviceinfo.eaimsg.mapping;

import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

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.manage.serviceinfo.eaimsg.ui.EAIReferenceMessageUI;

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

	@Mapping(source = "id.eaisvcname", target = "eaiSvcName")
	@Mapping(source = "id.refmsgidno", target = "refMsgIdNo")
	@Mapping(source = "id.svcprcssno", target = "svcPrcssNo")
	@Mapping(source = "refmsgidname", target = "refMsgIdName")
	@Override
	EAIReferenceMessageUI toVo(EAIReferenceMessage entity);

	@InheritInverseConfiguration
	@Override
	EAIReferenceMessage toEntity(EAIReferenceMessageUI vo);

}
