Please note: this project is inactive since early 2006

2.6.3 Modeling many-to-many relationships

Many-to-many relationships are not automatically handled by the framework yet, however they can be modeled and used with minimal efforts.

We'll first examine how many-to-many relationships are mapped in relational database schema. Then we will give a short example demonstrating how to do this, including the code that you'll have to insert in your classes to handle them.

We will use the following model as an example:

+--------+ 0,*                  0,*  +---------+
| Person |<-persons------addresses-->| Address |
|--------|                           |---------|
|  name  |                           | street  |
+--------+                           | town    |

Comments are welcome: Sebastien Bigaret / Modeling Home Page
Hosted Logo