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

import com.qsoft.rs.sincoar.model.MigrDatatypeTransformMap;
import com.qsoft.rs.sincoar.dto.MigrDatatypeTransformMapDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MigrDatatypeTransformMapMapper {

    MigrDatatypeTransformMapMapper INSTANCE = Mappers.getMapper(MigrDatatypeTransformMapMapper.class);
    @Mapping(source = "projectIdFk", target = "projectIdFk.id")
    MigrDatatypeTransformMap getEntidad(MigrDatatypeTransformMapDTO migrDatatypeTransformMap);
    
    @Mapping(target = "projectIdFk", source = "projectIdFk.id")
    MigrDatatypeTransformMapDTO getDto(MigrDatatypeTransformMap migrDatatypeTransformMap);

}