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.

|