![]() |
|||||||||||||||||
| |
|
|
|||||||||||||||
|
Join Tables and compound primary keys
For a many-to-many relationship the data base requires an extra table Table does not correspond to any class in the application By flattening relationships in EOM you can ensure each class contains an array Above Join Table is unusual
When not to flatten a relationship
When the join table contains columns other than foreign keys refering to the primary keys of the joined entities, then the table has data of its own in addition to the relationship information To access this data you have to create a class for the join table
Page updated September 7, 2004
|
||||||||||||||||
|
|
|||||||||||||||||