package com.eactive.eai.rms.onl.loader.intf.mapper;

import com.eactive.eai.data.entity.onl.message.CondPerRtgInfoEntity;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;
import com.eactive.eai.rms.onl.loader.intf.deploy.CondPerRtgInfoDeploy;
import org.hibernate.annotations.Comment;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import javax.persistence.Column;

@Mapper(config = BaseMapperConfig.class)
public interface CondPerRtgInfoDeployMapper extends GenericMapper<CondPerRtgInfoDeploy, CondPerRtgInfoEntity> {

    @Mapping(source = "id.eaisvcname", target = "eaisvcname")
    @Mapping(source = "id.svcprcssno", target = "svcprcssno")
    @Mapping(source = "id.ruleserno", target = "ruleserno")
    CondPerRtgInfoDeploy toVo(CondPerRtgInfoEntity condPerRtgInfoEntity);

    @InheritInverseConfiguration
    CondPerRtgInfoEntity toEntity(CondPerRtgInfoDeploy condPerRtgInfoDeploy);

}
