Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sequence Diagram - level of detail

 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
Rajeev Rnair
Ranch Hand
Posts: 310
1
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • 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
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • 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
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • 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,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic