Print Page | Close Window

MetaEdit+ and UUID

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: https://www.metacase.com/forums/forum_posts.asp?TID=790
Printed Date: 27.Mar.2026 at 03:35
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: MetaEdit+ and UUID
Posted By: janne
Subject: MetaEdit+ and UUID
Date Posted: 24.Oct.2014 at 13:14
An earlier topic ( http://www.metacase.com/forums/forum_posts.asp?TID=714&KW=UUID&PID=1702&title=using-uuid-or-guid-in-the-generator#1702" rel="nofollow - 714 ) discussed how to make UUIDs in MetaEdit+ with generators.

MetaEdit+ 5.1 adds a new way to handle UUIDs: rather than generating them you can define them directly in your metamodel, and in this way make them part of your language definition. This is done by creating a string property type with widget http://www.metacase.com/support/51/manuals/mwb/Mw-2_6_4.html" rel="nofollow - UUID Base64 .

 

Such a UUID property can be added to any language element. For example, if such a property is added to the 'Entity' object type as shown below then all entities will get a unique UUID – including already existing entity instances.

By prefixing the local name in Object Tool with '_', the property becomes read-only as shown below in the picture, ensuring the value remains permanent. If you only need the UUID for generator purposes and would like to hide if from modelers, you can use a double underscore prefix ('__Unique ID'). These hidden properties do not appear in the property dialog or property sheet, but can be read in generators and via the API, and are included in exports.

 

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net