package com.qsoft.rs.sincoar.dominio.mapper;

import com.qsoft.rs.sincoar.model.MdMigrParameter;
import com.qsoft.rs.sincoar.dto.MdMigrParameterDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MdMigrParameterMapper {

    MdMigrParameterMapper INSTANCE = Mappers.getMapper(MdMigrParameterMapper.class);
    @Mapping(source = "connectionIdFk", target = "connectionIdFk.id")
    MdMigrParameter getEntidad(MdMigrParameterDTO mdMigrParameter);
    
    @Mapping(target = "connectionIdFk", source = "connectionIdFk.id")
    MdMigrParameterDTO getDto(MdMigrParameter mdMigrParameter);

}