Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class diagrams

 
Vinutha Gattu
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What is the difference between Class diagram and collobration diagram.
Can I show Entity classes in class diagram.


Regards,
Vinutha.
 
Rodrigo Lopes
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class diagram represents static behavior, by showing the relationship between classes (associations, generalizations, specializations, agreggations, compositions and so on)
Colabortion diagrams represents dynamic behavior, it shows how classes colaborate with each other, to which classes one class communicates. It can derived from a sequence diagram, and vice-versa.
 
Vinutha Gattu
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can I show my DAO classes, service locator classes and session beans in my class diagram.
 
giuseppe fanuzzi
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Components like DAO, service locator, business delegate, filter, helper, and so on are design strategies.
They are translated to java classes, obviously, but are components that exists only for a design strategy.
so i think that they're best suited to show in a component diagram.
In a class diagram you've to draw primarly the business classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic