my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

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.


SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCEA/OCMJEA 5.0
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Showing "Join Table" (entity) in Class Diagram
 
Similar Threads
Unidirection Association
Part II - association /aggregation
uni-directional association (or Directed Association ) vs dependency
Hibernate - Annotations - many to many association
Association class