What's the proper way to indicate that a one-to-many should be a Map?

0 votes
asked May 5 in Question / help by matthewadams12 (240 points)

Let's say I have a Thing, and it has zero or more Widgets, but I want to indicate that the collection of Widgets is supposed to be a Map<String,Widget>?  This is the best I've come up with (somehow tack on some constraint text):

Thing "1" *-- "0..*" Widget : widgets { Map<String,Widget> }

Is there a better way?

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.