• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sequence Diagram - level of detail

 
Ranch Hand
Posts: 497
2
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 310
1
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
 
Fernando Franzini
Ranch Hand
Posts: 497
2
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 310
1
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
 
reply
    Bookmark Topic Watch Topic
  • New Topic