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

import com.qsoft.rs.sincoar.model.MdPartitions;
import com.qsoft.rs.sincoar.dto.MdPartitionsDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MdPartitionsMapper {

    MdPartitionsMapper INSTANCE = Mappers.getMapper(MdPartitionsMapper.class);
    @Mapping(source = "tableIdFk", target = "tableIdFk.id")
    MdPartitions getEntidad(MdPartitionsDTO mdPartitions);
    
    @Mapping(target = "tableIdFk", source = "tableIdFk.id")
    MdPartitionsDTO getDto(MdPartitions mdPartitions);

}