aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Sequence Diagram - level of detail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Sequence Diagram - level of detail" Watch "Sequence Diagram - level of detail" New topic
Author

Sequence Diagram - level of detail

Fernando Franzini
Ranch Hand

Joined: Jan 09, 2009
Posts: 486
    
    2

Hello everybody

I'm confused about this subject. Should I show the JPA interfaces in sequence diagram or not? I think if I show EntityManager I also have to show the Query. Thus, Should I show the consumption of DataSource connection pool too?

In my conception of high-level architecture that is not necessary! Draw a EAO / DAO accessing the database is enough. Just declare the design decisions that you are using JPA to communicate with the database.

Someone did not show the interfaces of JPA and passed?
Best Regards.


Fernando Franzini - Java Blog
Rajeev Rnair
Ranch Hand

Joined: Mar 22, 2010
Posts: 308

Hi Fernando,

In my sequence diagrams, I have shown the Entity Manager and the Entites
The SLSB will call Entity Manager functions like em.find() etc
I haven't shown other details of EntityManager
Hope this helps!

Thanks,


SCJP6, SCWCD5, OCP-JBCD5, OCE-JWSD6 OCE-JPAD6 , OCM-JEA5 1,OCM-JEA5 2,3 - Brainbench certifications: J2EE, Java2, Java2-NonGUI, JSP, SQL2000 Admin, SQL2000 Programming , Brainbench certified Java Programmer, Computer Programmer, Web Developer, Database Administrator
Fernando Franzini
Ranch Hand

Joined: Jan 09, 2009
Posts: 486
    
    2

Hello Rajeev

In your case, you do not use DAO / DAO pattern .... I mean ... You called the EntityManager methods inside SLSB .. right?
Regards.
Rajeev Rnair
Ranch Hand

Joined: Mar 22, 2010
Posts: 308

Fernando, I used DAO only when interfacing with external systems; JSF Managed bean -> BD -> SLSB -> DAO -> ext systems
Otherwise I had the Business Delegate calling the SLSB's, which will call Entity Manager methods etc JSB Managed Bean -> BD -> SLSB -> Entity Manager methods


Thanks,
 
 
subject: Sequence Diagram - level of detail