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

import com.qsoft.rs.sincoar.model.MdTablespaces;
import com.qsoft.rs.sincoar.dto.MdTablespacesDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MdTablespacesMapper {

    MdTablespacesMapper INSTANCE = Mappers.getMapper(MdTablespacesMapper.class);
    @Mapping(source = "schemaIdFk", target = "schemaIdFk.id")
    MdTablespaces getEntidad(MdTablespacesDTO mdTablespaces);
    @Mapping(target = "schemaIdFk", source = "schemaIdFk.id")
    MdTablespacesDTO getDto(MdTablespaces mdTablespaces);

}