package com.eactive.eai.custom.stderrorcode.mapper;

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

import com.eactive.eai.custom.stderrorcode.StdErrorCodeVO;
import com.eactive.eai.data.entity.custom.stderrorcode.StdErrorCode;
import com.eactive.eai.data.mapper.GenericMapper;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface StdErrorCodeMapper extends GenericMapper<StdErrorCodeVO, StdErrorCode> {

	   @Mapping(source = "ERR_CD", target = "errCd")
	   @Mapping(source = "ISD_ERR_CAS_CTS", target = "errMsg")
	   @Override
	   StdErrorCodeVO toVo(StdErrorCode entity);
}
