• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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
Marshal
Posts: 37688
574
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
Marshal
Posts: 37688
574
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Madhu,
I think leaving things out of the class diagram is asking for trouble.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!