package com.eactive.eai.flowcontrol.jms.mapper;

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

import com.eactive.eai.data.entity.onl.flowcontrol.jms.QueueMonitor;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;
import com.eactive.eai.flowcontrol.jms.QueueMonitorVO;

@Mapper(config = BaseMapperConfig.class)
public interface QueueMonitorMapper extends GenericMapper<QueueMonitorVO, QueueMonitor> {
	@Mapping(source = "id.nonsyncztranquename", target = "queueName")
	@Mapping(source = "id.eaisevrinstncname", target = "sevrInstncName")
	@Mapping(source = "eaibzwkdstcd", target = "bzwkDstcd")
	@Mapping(source = "eaiquebzwkctnt", target = "queBzwkCtnt")
	@Mapping(source = "eaiquebzwkdtalsctnt", target = "queBzwkDtalsCtnt")
	@Mapping(source = "eaiquecrtcnmvlval", target = "maxCount")
	@Mapping(source = "queusagdstcd", target = "queUsagDstcd")
	@Mapping(source = "queuseyn", target = "queUseYn")
	@Override
	QueueMonitorVO toVo(QueueMonitor entity);

	@InheritInverseConfiguration
	QueueMonitor toEntity(QueueMonitorVO vo);
}
