package com.eactive.eai.rms.onl.manage.serviceinfo.submessage;

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

import com.eactive.eai.data.entity.onl.submessage.SubMessageItem;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;

@Mapper(config = BaseMapperConfig.class)
public interface SubMessageItemUIMapper extends GenericMapper<SubMessageItemUI, SubMessageItem> {

	@Mapping(source = "id.bzwksvckeyname" , target = "bzwkSvcKeyName")
	@Mapping(source = "id.columnname" , target = "columnname")
	@Mapping(source = "columnvalue" , target = "columnvalue")
	@Override
	SubMessageItemUI toVo(SubMessageItem entity);

	@InheritInverseConfiguration
	@Override
	SubMessageItem toEntity(SubMessageItemUI vo);

}
