• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

small UML question

 
guy katz
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi;
i have to class.
one has a string member that is a unique id of the other (not a reference to the other) .
should this be modeled has an association?
thanks.
 
Dave Cronin
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what you have here is a qualified association. The unique ID tells you specific information about which object is associated with the other object. That seems to be commonly represented in UML with a square between the class rectangle and the association line.
An aggregration is just a strong form of association, whereby one object is part of another. That might also be a possibility in this case, depending on the relationship between your two classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic