package com.eactive.eai.inbound.error.mapper;

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

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

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface InboundErrorInfoMapper extends GenericMapper<InboundErrorInfoVO, InboundErrorInfo> {
	@Mapping(source = "eaisvcserno", target = "eaiSvcSno")
	@Mapping(source = "adptrbzwkgroupname", target = "adptBwkGrpNm")
	@Mapping(source = "eaierrdstcd", target = "errDstcd")
	@Mapping(source = "eaierrcd", target = "errCd")
	@Mapping(source = "eaierrctnt", target = "errTxt")
	@Mapping(source = "erroccurhms", target = "errTm")
	@Mapping(source = "bzwkdatactnt", target = "bwkDataTxt")
	@Mapping(source = "eaisevrinstncname", target = "eaiSvrInstNm")
	@Mapping(source = "eaisvcname", target = "eaiSvcCd")
	@Mapping(source = "bzwksvckeyname", target = "bzwkSvcKeyName")
	@Override
	InboundErrorInfoVO toVo(InboundErrorInfo entity);

	@InheritInverseConfiguration
	InboundErrorInfo toEntity(InboundErrorInfoVO vo);
}

