• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

bidirectional many-to-many association mapping Vs ternary association mapping ?

 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the hiberante mapping, what is the difference between bidirectional many-to-many association mapping and ternary association mapping ?
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Difference?
A ternary association is the practice of modeling a many-to-many relationship through the introduction of an association entity (table/object) in between the related entities and simplifying the relationships:


Hibernates gives you the option to create a ternary association by either realizing the association object explicitly (usually the preferred approach, as it is often later discovered that there are actually properties that belong to the association object- making it a full blown object rather than a modeling construct) or through a Map on the related objects with the association as the index (see 6.9. Ternary Associations, Flexible Mapping).

See also: Confused´┐Ż
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic