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

EntityManager on Sequence Diagram

 
Christian Suarez
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on my assignment but I'm not sure if I should put the EntityManager on the sequence diagram to represent the interaction between my Session Facade and my JPA Entity, what do you think guys?
 
Ashwin Pai
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your diagram gets too cluttered then its better not to show it.. If you mention you are using JPA i think its pretty clear how you would be performing DB operations.

HTH
Ashwin
 
Ronald Wouters
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did put the EntityManager on my sequence diagram because most of the time, even before you invoke say the "persist" method, you probably will be invoking some setter methods or other "business" methods on your entity or entities. My assignment states that all (public) methods that are present in a sequence diagram should also be present on the class diagram. By "going through the motions" of diagramming things with the entity manager you make sure you "discover" all business methods/setters/getters that should be put on the class diagram also.
I must admit that to view my sequence diagrams you will need to use a scroll bar ...

Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic