Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!