aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Question on relation between a SLSB, DAO and dependent POJO object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Question on relation between a SLSB, DAO and dependent POJO object" Watch "Question on relation between a SLSB, DAO and dependent POJO object" New topic
Author

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

Madhu Maniganta
Greenhorn

Joined: Nov 27, 2010
Posts: 14
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

Joined: May 26, 2003
Posts: 30758
    
156

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Madhu Maniganta
Greenhorn

Joined: Nov 27, 2010
Posts: 14
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

Joined: Feb 26, 2003
Posts: 240
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

Joined: May 26, 2003
Posts: 30758
    
156

Madhu,
I think leaving things out of the class diagram is asking for trouble.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question on relation between a SLSB, DAO and dependent POJO object