• 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

Showing JPA Entities in Diagrams

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My opinion is if that is important in architecture let them in, if not, no need to show.
 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic