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

import com.qsoft.rs.sincoar.model.MdUserDefinedDataTypes;
import com.qsoft.rs.sincoar.dto.MdUserDefinedDataTypesDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MdUserDefinedDataTypesMapper {

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

    @Mapping(source = "schemaIdFk", target = "schemaIdFk.id")
    MdUserDefinedDataTypes getEntidad(MdUserDefinedDataTypesDTO mdUserDefinedDataTypes);

    @Mapping(target = "schemaIdFk", source = "schemaIdFk.id")
    MdUserDefinedDataTypesDTO getDto(MdUserDefinedDataTypes mdUserDefinedDataTypes);

}