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

import com.qsoft.rs.sincoar.model.MdStoredPrograms;
import com.qsoft.rs.sincoar.dto.MdStoredProgramsDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MdStoredProgramsMapper {

    MdStoredProgramsMapper INSTANCE = Mappers.getMapper(MdStoredProgramsMapper.class);
    @Mapping(source = "schemaIdFk", target = "schemaIdFk.id")
    @Mapping(source = "packageIdFk", target = "packageIdFk.id")

    MdStoredPrograms getEntidad(MdStoredProgramsDTO mdStoredPrograms);
    
    @Mapping(target = "schemaIdFk", source = "schemaIdFk.id")
    @Mapping(target = "packageIdFk", source = "packageIdFk.id")
    MdStoredProgramsDTO getDto(MdStoredPrograms mdStoredPrograms);

}