| 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
internet detective
Marshal
Joined: May 26, 2003
Posts: 26173
|
|
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
internet detective
Marshal
Joined: May 26, 2003
Posts: 26173
|
|
Madhu,
I think leaving things out of the class diagram is asking for trouble.
|
 |
 |
|
|
subject: Question on relation between a SLSB, DAO and dependent POJO object
|
|
|