package com.eactive.eai.rms.onl.manage.rule.transformfunc.map;

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

import com.eactive.eai.data.entity.onl.transformer.function.Function;
import com.eactive.eai.rms.onl.manage.rule.transformfunc.ui.TransformFuncUI;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface TransformFuncManMapperWithoutChild {
	@Mapping(source = "cnvsnfuntnname", target = "cnvsnFuntnName")
	@Mapping(source = "cnvsnfuntndesc", target = "cnvsnFuntnDesc")
	@Mapping(source = "cnvsnfuntnclsname", target = "cnvsnFuntnClsName")
	@Mapping(source = "cnvsnfuntnretunptrnidname", target = "cnvsnFuntnRetunPtrnIdName")
	@Mapping(source = "cnvsnfuntnptrnidname", target = "cnvsnFuntnPtrnIdName")
	@Mapping(source = "parameters", target = "parameters", ignore = true)
	TransformFuncUI toVo(Function entity);
}
