File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes What should be included in class diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "What should be included in class diagram" Watch "What should be included in class diagram" New topic

What should be included in class diagram

Bijan Mohanty
Ranch Hand

Joined: Apr 16, 2002
Posts: 36
Hi folks,
I am having a hard time deciding what to show in the class diagram for the following situation.
For example Address, I have a domain class as well as an entity bean. The entity bean takes the domain object in it's ejbCreate. I would like to know which class I show in my class diagram. Should I show the domain class Address or the entity bean by putting a stereotype as <<entitybean>>. Or, should I use the entity bean in the component diagram and sequence diagram only and use the domain object in the class diagram
All expert advices will be appreciated.
Thanks a bunch in advance.
Madhavi Pillai

Joined: Jul 18, 2003
Posts: 1
You can prepare a VOPC - (View of participating Classes) and show all the classes which belong to a particular use case, including the domain and entity bean class. VOPC, should also depict the appropriate relationship these classes share.
Jehan Jaleel
Ranch Hand

Joined: Jan 16, 2001
Posts: 38
But what really is the difference between a domain class and an entity bean when it comes to how they will be represented in a class diagram?
I see no point into putting both of them because their manifestations on the diagram seem to be very similar?
I agree. Here's the link:
subject: What should be included in class diagram
It's not a secret anymore!