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

import com.qsoft.rs.sincoar.model.MdMigrWeakdep;
import com.qsoft.rs.sincoar.dto.MdMigrWeakdepDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MdMigrWeakdepMapper {

    MdMigrWeakdepMapper INSTANCE = Mappers.getMapper(MdMigrWeakdepMapper.class);
    @Mapping(source = "schemaIdFk", target = "schemaIdFk.id")
    @Mapping(source = "connectionIdFk", target = "connectionIdFk.id")
    MdMigrWeakdep getEntidad(MdMigrWeakdepDTO mdMigrWeakdep);
    @Mapping(target = "schemaIdFk", source = "schemaIdFk.id")
    @Mapping(target = "connectionIdFk", source = "connectionIdFk.id")
    MdMigrWeakdepDTO getDto(MdMigrWeakdep mdMigrWeakdep);

}