package com.eactive.eai.rms.onl.manage.comm.error;

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

import com.eactive.eai.data.entity.onl.inbound.error.InboundErrorInfo;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;

@Mapper(config = BaseMapperConfig.class)
public interface InboundErrorInfoUIMapper extends GenericMapper<InboundErrorInfoUI, InboundErrorInfo> {

	@Mapping(source = "eaisvcserno", target = "eaiSvcSerno")
	@Mapping(source = "adptrbzwkgroupname", target = "adptrBzwkGroupName")
	@Mapping(source = "eaierrdstcd", target = "eaiErrDstCd")
	@Mapping(source = "eaierrcd", target = "eaiErrCd")
	@Mapping(source = "eaierrctnt", target = "eaiErrCtnt")
	@Mapping(source = "erroccurhms", target = "errOccurHms")
	@Mapping(source = "bzwkdatactnt", target = "bzwkDataCtnt")
	@Mapping(source = "eaisevrinstncname", target = "eaiSevrInstncName")
	@Mapping(source = "eaisvcname", target = "eaiSvcName")
	@Mapping(source = "bzwksvckeyname", target = "bzwkSvcKeyName")
	@Override
	InboundErrorInfoUI toVo(InboundErrorInfo entity);

	@InheritInverseConfiguration
	@Override
	InboundErrorInfo toEntity(InboundErrorInfoUI vo);
}