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

import com.eactive.eai.data.entity.onl.b2bextractor.B2BExtract;
import com.eactive.eai.data.entity.onl.bizkey.BizKey;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;
import com.eactive.eai.rms.onl.loader.intf.deploy.B2BExtractDeploy;
import org.hibernate.annotations.Comment;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import javax.persistence.Column;
import java.util.List;

@Mapper(config = BaseMapperConfig.class)
public interface B2BExtractDeployMapper extends GenericMapper<B2BExtractDeploy, B2BExtract> {

    @Mapping(source = "id.eaisvcname", target = "eaisvcname")
    @Mapping(source = "id.svcprcssno", target = "svcprcssno")
    B2BExtractDeploy toVo(B2BExtract b2BExtract);

    @InheritInverseConfiguration
    B2BExtract toEntity(B2BExtractDeploy b2BExtractDeploy);

    List<B2BExtract> map(List<B2BExtractDeploy> vos);

}
