Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Showing "Join Table" (entity) in Class Diagram

 
Gurunath Dharmar
Ranch Hand
Posts: 45
Eclipse IDE Oracle Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic