package com.eactive.eai.rms.onl.audit.adapter.map;

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

import com.eactive.eai.data.entity.onl.adapter.Adapter;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;
import com.eactive.eai.rms.onl.audit.adapter.ui.AdapterAuditUI;

@Mapper(config = BaseMapperConfig.class, uses = { AdapterPropGroupAuditUIMapper.class })
public interface AdapterAuditUIMapper extends GenericMapper<AdapterAuditUI, Adapter> {

	@Mapping(source = "id.adptrbzwkgroupname", target = "adptrbzwkgroupname")
	@Mapping(source = "id.adptrbzwkname", target = "adptrbzwkname")
	@Override
	AdapterAuditUI toVo(Adapter entity);

	@Override
	Adapter toEntity(AdapterAuditUI vo);

}
