• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resource Tier components in Class diagram?

 
pin guan wang
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is it a good idea to include resource tier components like Database, LDAP server, web services, etc into the class diagram?

At first I always think that class diagram should only include Classes and that is all, but Cade's book is showing JSP pages in class diagram, that is why I wonder if it is a good idea to include resource tier components into class diagram..

What do you think?


Thanks in advance.
 
Amritendu De
author
Ranch Hand
Posts: 188
11
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Resource Tier has the entities which you must include in your class diagram. First form the domain model and then add daos, services, etc on top of it.
 
pin guan wang
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amritendu De wrote:Resource Tier has the entities which you must include in your class diagram. First form the domain model and then add daos, services, etc on top of it.


Dear Amritendu,

Thanks for your reply.

You mentioned the "entities" in the Resource Tier, do you mean the JPA entity classes?

How about the components like Database, LDAP Server, Email Server, do I need to show them into the class diagram? These components are not classes, do I need to add them?


Thanks again
 
Amritendu De
author
Ranch Hand
Posts: 188
11
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mentioned the "entities" in the Resource Tier, do you mean the JPA entity classes?
[Amritendu] Yes I meant the JPA entities.

How about the components like Database, LDAP Server, Email Server, do I need to show them into the class diagram? These components are not classes, do I need to add them?
[Amritendu] Only classes should be in the class diagram not Email Server, etc.
 
Aditya Kumar
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about the components like Database, LDAP Server, Email Server, do I need to show them into the class diagram? These components are not classes, do I need to add them?


No. A Class diagram is just that - a Class diagram and should focus on those classes that YOU will develop in case you code the system. The components that you mentioned are not classes, as you rightly say, and thus should not be in the diagram. However, if you write a class that does the job of, say, emailing people (like a MainSender.java - that will invoke the Email Server) then that class should be present in your class diagram. I hope I am able to clear your doubt.

aditya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic