Question & Answer
Question
When generating new code in IBM Rational Rhapsody, why do some GUIDs in the repository files (such as package files) sometimes change?
Cause
A GUID is a unique identifier of a Rhapsody element. Changing the GUID mainly occurs for auto generated functions like constructors, destructors, set/get functions. When displaying these functions in the Rhapsody browser, they are added and saved with the package file.
Generating new code removes all auto generated functions (and their GUIDs) first and then regenerates them which can cause different GUIDs.
When using textual diff tools, you see these changes. When using the Rhapsody Diff/Merge tool, these changed GUIDs are not displayed.
Answer
If you have difficulties with GUID changes in your configuration management system, it is recommended to switch off the property CG::CGGeneral::GeneratedCodeInBrowser before code generation, saving the model and check in to the config management tool.
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21616764