Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

What should be included in class diagram

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic