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

import com.qsoft.rs.sincoar.model.MigrDatatypeTransformRule;
import com.qsoft.rs.sincoar.dto.MigrDatatypeTransformRuleDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MigrDatatypeTransformRuleMapper {

    MigrDatatypeTransformRuleMapper INSTANCE = Mappers.getMapper(MigrDatatypeTransformRuleMapper.class);

    @Mapping(source = "mapIdFk", target = "mapIdFk.id")
    MigrDatatypeTransformRule getEntidad(MigrDatatypeTransformRuleDTO migrDatatypeTransformRule);
    @Mapping(target = "mapIdFk", source = "mapIdFk.id")
    MigrDatatypeTransformRuleDTO getDto(MigrDatatypeTransformRule migrDatatypeTransformRule);

}