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.CondPerRtgInfoEntity;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;
import com.eactive.eai.rms.onl.manage.serviceinfo.eaimsg.ui.CondPerRtgInfoUI;

@Mapper(config = BaseMapperConfig.class)
public interface CondPerRtgInfoUIMapper extends GenericMapper<CondPerRtgInfoUI, CondPerRtgInfoEntity> {

	@Mapping(source = "id.eaisvcname", target = "eaiSvcName")
	@Mapping(source = "id.svcprcssno", target = "svcPrcssNo")
	@Mapping(source = "id.ruleserno", target = "ruleSerno")
	@Mapping(source = "cmprctnt", target = "cmprCtnt")
	@Mapping(source = "rsultprcssno", target = "rsultPrcssNo")
	@Mapping(source = "rulefldgroupname", target = "ruleFldGroupName")
	@Mapping(source = "rulefldname", target = "ruleFldName")
	@Override
	CondPerRtgInfoUI toVo(CondPerRtgInfoEntity entity);

	@InheritInverseConfiguration
	@Override
	CondPerRtgInfoEntity toEntity(CondPerRtgInfoUI vo);

}
