File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Madhu Maniganta
Greenhorn
Posts: 14
  • 0
  • 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?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • 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
  • 0
  • 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
 
Bigwood Liu
Ranch Hand
Posts: 240
  • 0
  • 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: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • 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