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

import com.qsoft.rs.sincoar.model.MigrGenerationOrder;
import com.qsoft.rs.sincoar.dto.MigrGenerationOrderDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MigrGenerationOrderMapper {

    MigrGenerationOrderMapper INSTANCE = Mappers.getMapper(MigrGenerationOrderMapper.class);
    @Mapping(source = "connectionIdFk", target = "connectionIdFk.id")

    MigrGenerationOrder getEntidad(MigrGenerationOrderDTO migrGenerationOrder);
    @Mapping(target = "connectionIdFk", source = "connectionIdFk.id")
    MigrGenerationOrderDTO getDto(MigrGenerationOrder migrGenerationOrder);

}