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

import com.qsoft.rs.sincoar.model.MdPrivileges;
import com.qsoft.rs.sincoar.dto.MdPrivilegesDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MdPrivilegesMapper {

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

    MdPrivileges getEntidad(MdPrivilegesDTO mdPrivileges);
    
    @Mapping(target = "schemaIdFk", source = "schemaIdFk.id")
    MdPrivilegesDTO getDto(MdPrivileges mdPrivileges);

}