Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Showing JPA Entities in Diagrams

 
Prashant Purkar
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

In my assignement I want to use some facade to handle all JPA entities.

There are close to 7-8 entities working togther to represent a domain model.

Do I have to show all these entities in a sequence diagram when domain model is modified.

Or can i hide them all with something like JPAFacade ----> JPA Entities

any ideas ??

Thanks
P
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My opinion is if that is important in architecture let them in, if not, no need to show.
 
Ronald Wouters
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember that this is both an archictecture and design assignment. When creating a sequence/collaboration diagram for a given use case, I have put JPA entities in that diagram but only those relevant to that particular use case of course. I have also put in the facade and the interaction of the facade with the entities, just to make it cristal clear what I mean. My reason for doing this ? When doing sequence diagrams, the tool I use automatically adds methods to my class diagram when I add a method on my sequence diagram. So by doing the sequence diagrams in full detail, I make sure my class diagram also shows the correct methods. The correlation of methods on the sequence diagrams with methods on the class diagram is a requirement of my assignment.

Regards
 
Prashant Purkar
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you both. Taking a clue from Ronald that its a archictecture and design assignment, I am thinking it will be good idea to show facade calling key operations on entities.

P
 
Prashant Purkar
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
by the way I use StarUML and it doesnt seem to add methods in sequence diagram to class diagrams.

What tool do you use Ronald?

P
 
Ronald Wouters
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Enterprise Architect from Sparx.
It is a great tool but it is not free ... You can download a trial though.
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually architecture and design are quite related. Some designs are architecture, some are not.

For me, an architect should create the most important parts of design which mostly are architecture, but doesn't need to design in very detail.

But that is only my opinion, every architect can have different opinions and styles.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic