Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cade's book dashed association question

 
Krzysztof Grajek
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a question regarding class diagram presented in Cade's book. On the diagram he uses a dashed arraw to depict assoctiation between jsp pages and controller as well as between stateless beans and entities with <<uses>>. Is it UML compilant? What kind of association is this, I understand association with solid line, aggragation, composition, but cannot find anywhere association with a dashed line.
 
Krzysztof Koziol
Ranch Hand
Posts: 133
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a dependency and it's UML compliant
 
Krzysztof Grajek
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was a lame question, of course its a dependency, I had a blackout or something , its even named 'dependency' in my uml tool . What I actually don't know is when to use which, I mean in which cases should I use generalized dependency notation and, in which cases should I use association (arrow ended or just straight line)?
 
Krzysztof Koziol
Ranch Hand
Posts: 133
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may use dependency to show that one class uses other class as method return type or method argument, one class use other class in the method body etc.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic