Record-relational mapping support

It would be very nice to have the possibility to create joins/have the mechanism of changes propagation and cascade deletes. As the first step to have tune mnesia to act like a standard relational DB, we have to define at least 3 types of behaviours.

The data used in the proposal is as follows:

One to One

One car can belong to one boss only. The car knows about its owner, the owner knows about the car (only the ids are stored in the db).

One to Many

One boss can possess multiple cars: the car does not know about the owner, so the data is stored only on the boss side.

Many to Many

Cars can belong the multiple owners, owners can have multiple cars. Ids are stored on the both sides of the records.

Implementation

Since only ids of the particular entities are stored, we have to define some additional operations that will allow us to use this extension:

Proposals/RelationalDBSupport (last edited 2009-03-23 10:37:19 by Michal Ptaszek)