Two Laptop Bag*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Showing JPA Entities in Diagrams Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Showing JPA Entities in Diagrams" Watch "Showing JPA Entities in Diagrams" New topic
Author

Showing JPA Entities in Diagrams

Prashant Purkar
Ranch Hand

Joined: May 08, 2008
Posts: 84
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

Joined: Jul 05, 2005
Posts: 1936
My opinion is if that is important in architecture let them in, if not, no need to show.


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Ronald Wouters
Ranch Hand

Joined: Apr 28, 2005
Posts: 190
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


Sun Certified Developer for the Java 2 Platform
Sun Certified Enterprise Architect for the Java Platform, Enterprise Edition 5
Prashant Purkar
Ranch Hand

Joined: May 08, 2008
Posts: 84
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

Joined: May 08, 2008
Posts: 84
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

Joined: Apr 28, 2005
Posts: 190
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

Joined: Jul 05, 2005
Posts: 1936
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Showing JPA Entities in Diagrams
 
Similar Threads
Domain Object Vs DTO....
Pass JPA entities across tiers?
Data Model for SCEA-2
JPA entities in Integration Tier
JPA design policy