Sparx Systems Forum
Enterprise Architect => Suggestions and Requests => Topic started by: philchudley on March 12, 2009, 01:56:49 am
-
Hi All
This has been around for some time and is also present in EA v 7.5
When using MDA to transform a PIM to PSM, there is a macro Attribute__Property called from the macro Class to generate Properties for attributes defined in the PIM class. Great and useful. BUT, this only generates Properties for attributes whose scope is Public, not Private which is the default (sensibly)
This means that the properties for the attributes are never generated, unless the transformation templates are modified.
Oddly, the role (linked attribute) is Public by default and this gets converted to Private and a Property generated during the MDA process
If the attributes are defined as Public in the PIM class, then all works as expected.
I would suggest, that in a Class if the language is <none>, then the default scope of the attribute should be Public and not Private.
Unless I have missed a method in EA of setting the default scope to Public for PIM classes?
Cheers