File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Showing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Showing "Join Table" (entity) in Class Diagram" Watch "Showing "Join Table" (entity) in Class Diagram" New topic

Showing "Join Table" (entity) in Class Diagram

Gurunath Dharmar
Ranch Hand

Joined: Aug 10, 2009
Posts: 45

Hi All,

1) If i decide to keep a join table for a many-to-many association, do i need to show it in class diagram or simply put a note saying JPA auto-creates it?
2) If my domain model shows uni-directional navigation between many-to-many, can i change it to bi-directional (default association in data model)?

Please clarify me.
Krzysztof Koziol
Ranch Hand

Joined: Nov 19, 2006
Posts: 133

1) I would put a note under the Class Diagram that JPA takes care of any additional tables that are needed by this ORM mapping.
2) I would not change any navigations given in the assignment.

subject: Showing "Join Table" (entity) in Class Diagram