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

import com.qsoft.rs.sincoar.model.MdOtherObjects;
import com.qsoft.rs.sincoar.dto.MdOtherObjectsDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MdOtherObjectsMapper {

    MdOtherObjectsMapper INSTANCE = Mappers.getMapper(MdOtherObjectsMapper.class);
    @Mapping(source = "schemaIdFk", target = "schemaIdFk.id")
    MdOtherObjects getEntidad(MdOtherObjectsDTO mdOtherObjects);
    
    @Mapping(target = "schemaIdFk", source = "schemaIdFk.id")
    MdOtherObjectsDTO getDto(MdOtherObjects mdOtherObjects);

}