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

import com.eactive.eai.data.entity.onl.stdmessage.StandardMessageItem;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;
import com.eactive.eai.rms.onl.loader.intf.deploy.StandardMessageItemDeploy;
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 StandardMessageItemDeployMapper extends GenericMapper<StandardMessageItemDeploy, StandardMessageItem> {

    @Mapping(source = "id.bzwksvckeyname", target = "bzwksvckeyname")
    @Mapping(source = "id.columnname", target = "columnname")
    StandardMessageItemDeploy toVo(StandardMessageItem standardMessageItem);

    @InheritInverseConfiguration
    StandardMessageItem toEntity(StandardMessageItemDeploy standardMessageItemDeploy);

}
