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. Bijan
Hi, 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.
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? Jehan