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

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

import com.eactive.eai.common.restrict.RestrictInfoVO;
import com.eactive.eai.data.entity.onl.restrict.RestrictInfo;
import com.eactive.eai.data.mapper.GenericMapper;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface RestrictInfoMapper extends GenericMapper<RestrictInfoVO, RestrictInfo> {
	@Mapping(source = "id", target = "EAICtrlName")
	@Mapping(source = "eaictrlnamedstcd", target = "EAICtrlNameDstcd")
	@Mapping(source = "eaictrldsticctnt", target = "EAICtrlDsticCtnt")
	@Mapping(source = "ctrlprcssyms", target = "ctrlPrcssYMS")
	@Mapping(source = "tranctrlprcssname", target = "tranCtrlPrcssName")
	@Override
	RestrictInfoVO toVo(RestrictInfo entity);
	
	@InheritInverseConfiguration
	RestrictInfo toEntity(RestrictInfoVO vo);	
}
