Win a copy of liveProject: Protecting User Data with Spring Security and OAuth2 this week in the Spring forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Sequence Diagram - level of detail

 
Ranch Hand
Posts: 489
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: 489
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