package com.eactive.eai.rms.onl.manage.rule.header.mapper;

import org.mapstruct.BeanMapping;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.NullValuePropertyMappingStrategy;

import com.eactive.eai.data.entity.onl.stdmessage.StandardMessageLayout;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;
import com.eactive.eai.rms.onl.manage.rule.header.vo.StandardMessageLayoutVo;

@Mapper(config = BaseMapperConfig.class, uses = { StandardMessageLayoutItemMapper.class })
public interface StandardMessageLayoutMapper extends GenericMapper<StandardMessageLayoutVo, StandardMessageLayout> {

	@BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
	void updateEntity(StandardMessageLayoutVo standardMessageLayoutVo,
			@MappingTarget StandardMessageLayout standardMessageLayout);

}
