Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!