Tables are currently implemented as stereotyped classes. When you make the primary stereotype of the class
«table», the little table glyph will appear at the top right. In addition, if both ends of a relationship are stereotyped table in this way, the
Foreign Keys... dialog is enabled.
Using EA's multiple stereotype functionality, you can add further stereotypes, that describe the nature for the table. In addition, when multiple stereotypes are defined, and EA draws the glyph, it (conveniently) removes the
«table» stereotypes (because it has now been rendered in the glyph)!
However, from a user point of view, there is a problem with the current implementation. When rendering the multiple stereotypes, one needs the glyph is rendered ONLY if it is the primary stereotype. Accordingly, there is
NO simple mechanism to allow the rendering of the auxiliary stereotypes.
We propose that since the glyph rendering is internal to EA (and therefore beyond user control), the the glyph be rendered if the
«table» stereotype occurs
anywhere in the list.
In this way, the primary stereo can become one of the more expressive stereotypes that describe the nature of the table and the glyph (specifying that it
IS a table) will still appear...
Interestingly, (in the current implementation) if you make the
«table» stereotype NOT the primary stereotype, the relationship link will STILL detect it is a table and provide the
Foreign Keys... dialog!
Consistency, Consistency, Consistency! TMAlthough this posting is specific to the table glyph, we think it should be generally applicable.
Thoughts? Votes?
Paolo and Darren
[size=0]©2007 Paolo Cantoni & Darren Sampson, Ripple Systems[/size]