package com.eactive.eai.rms.onl.apim.portalnotice;

import com.eactive.apim.portal.portalNotice.entity.PortalNotice;
import org.mapstruct.*;

@Mapper(componentModel = "spring",
		unmappedTargetPolicy = ReportingPolicy.IGNORE,
		unmappedSourcePolicy = ReportingPolicy.IGNORE)
public interface PortalNoticeUIMapper {

    PortalNoticeUI toVo(PortalNotice entity);

	@InheritInverseConfiguration
	PortalNotice toEntity(PortalNoticeUI vo);

	@BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
	void updateToEntity(PortalNoticeUI portalNoticeUI, @MappingTarget PortalNotice portalNotice);

}
