package com.eactive.eai.common.message.mapper;

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

import com.eactive.eai.common.message.CondPerRtgInfo;
import com.eactive.eai.data.entity.onl.message.CondPerRtgInfoEntity;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;

@Mapper(config = BaseMapperConfig.class)
public interface CondPerRtgInfoMapper extends GenericMapper<CondPerRtgInfo, CondPerRtgInfoEntity> {
	@Mapping(source = "cmprctnt", target = "ruleCprTxt")
	@Mapping(source = "rsultprcssno", target = "rsultPrcssNo")
	@Mapping(source = "rulefldgroupname", target = "ruleGrpNm")
	@Mapping(source = "rulefldname", target = "ruleColNm")

	@Override
	CondPerRtgInfo toVo(CondPerRtgInfoEntity entity);

	@InheritInverseConfiguration
	CondPerRtgInfoEntity toEntity(CondPerRtgInfo vo);

}
