On 5/25/06, Guillermo Roditi <[EMAIL PROTECTED]> wrote:
I am building a TODO manager, and I am having trouble grasping how i should
handle dependency relations within todo objects. here's a simplified layout

To_Dos
Fields: id (PK), title, due_date

To_Do_Dependencies
Fields: dependent_id (FK To_Dos.id), dependee_id (FK To_Dos.id)
PK: dependent_id, dependee_id
[...]
So this is a many to many, but i can't wrap my head around how to specify
this in RDBO

There was a recent example of how to set this up posted to the mailing list:

http://sourceforge.net/mailarchive/message.php?msg_id=15698216

Previously, there was a bug that prevented it from working correctly,
but that's since been fixed.  Basically, it's just a regular
many-to-many relationship that happens to have the same class on both
"ends" of the relationship.  That means that you need to explicitly
specify map_from and map_to values (they'd be correctly guessed by
RDBO if they pointed to different classes instead of the same class)
but otherwise it's nothing special.

-John


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to