• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SCEA Part 2 assignment class diagram

 
Rajashekar Akula
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For SCEA part 2 assignment submission, Does the class digram show Java EE specific classes or generic classes in the class diagram?
A class diagram can be represented by either generic classes or Java EE specific classes like EJB classes, Servlet classes, helper classes, interfaces etc., I was wondering which is the right way of representing a class digram for the assignment submission?

I have already prepared a class digram with generic classes, but after reading some topics, i am little bit confused.

Can somebody please clarify? Thanks
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The class diagram should describe the classes that the developers must code in order to deliver the final product.

You can indicate that a bean would be a session bean, but you wouldn't put an interface or class defined by the J2EE spec on a class diagram. That would imply that the developers would need to redevelop a J2EE class.

Keep it simple, and designed to tell the developers what classes and interfaces they need to code. If a developer looks at your code and says 'is this guy telling me that I have to code new implementations for the standard J2EE API classes' then you've got classes on there that don't belong.

What classes are the developers going to code? That's what goes on your class diagram.

-Cameron McKenzie
 
Rajashekar Akula
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Cameron! for the prompt reply.

Let me take an example, There is a class 'order' which i have designed as an entity and the client is invoking this class from a session facade. The client request is coming through a controller class(servlet) and request processor and there could be other handler/action classes.
So my question is -
Is it sufficient to include only the order class in the class diagram OR do i need to include all other classes(controller class, request processor, session facade etc.,) which the developer has to implement while coding.

-Raj

 
Sharma Ashutosh
Bartender
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even i have the similar kind of questions? How much detailed my class diagram should be? Obviously i don't want to show any getter/setter methods and inherited members but i feel one need to show all the important public methods(may not show helper methods or private methods etc...)

Do we need to portray all the classes in the system or the most important classes?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic