• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Question on relation between a SLSB, DAO and dependent POJO object

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a question on relationship between a SLSB, DAO and dependent POJO object. For example during checkout process of an online application the user enters credit card and goes through the payment process. Say the classes are PaymentSLSB, PaymentDAO and Payment (POJO), in the UML should we show :
(i) PaymentSLSB--->PaymentDAO and PaymentSLSB--->Payment (POJO)
(ii)PaymentSLSB--->PaymentDAO-->Payment (POJO)

Because PaymentSLSB calls PaymentDAO and both of them Payment POJO, I am confused about dependency.

Also do we show DAO's in the class diagram? for example PaymentDAO above?
 
author & internet detective
Posts: 41125
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should so any classes used in your sequence diagram in your class diagram. So yes, the DAO needs to be in the class diagram.

Option 2 sounds more accurate.
 
Madhu Maniganta
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jeanne,
I too thought of showing DAOs in my class diagram, but was confused after looking at Cade's Chapter 9 example, coz there DAOs are NOT in class diagram but are present in Component and Sequence Diagrams. What do you think?
Thanks,
Madhu
 
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Madhu Maniganta wrote:Jeanne,
I too thought of showing DAOs in my class diagram, but was confused after looking at Cade's Chapter 9 example, coz there DAOs are NOT in class diagram but are present in Component and Sequence Diagrams. What do you think?
Thanks,
Madhu



Anything shows in Sequence Diagram must show in class diagram.
 
Jeanne Boyarsky
author & internet detective
Posts: 41125
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Madhu,
I think leaving things out of the class diagram is asking for trouble.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic