This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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.

I agree. Here's the link:
subject: Showing "Join Table" (entity) in Class Diagram
It's not a secret anymore!