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

import com.qsoft.rs.sincoar.model.MdMigrDependency;
import com.qsoft.rs.sincoar.dto.MdMigrDependencyDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MdMigrDependencyMapper {

    MdMigrDependencyMapper INSTANCE = Mappers.getMapper(MdMigrDependencyMapper.class);
    @Mapping(source = "connectionIdFk", target = "connectionIdFk.id")
    MdMigrDependency getEntidad(MdMigrDependencyDTO mdMigrDependency);

    @Mapping(target = "connectionIdFk", source = "connectionIdFk.id")
    MdMigrDependencyDTO getDto(MdMigrDependency mdMigrDependency);

}