horizontal inheritance and bi-directional relationships
horizontal inheritance and bi-directional relationships
- Subject: horizontal inheritance and bi-directional relationships
- From: email@hidden
- Date: 19 Jan 2006 15:39:11 -0000
Hi to all,
I receive some strange results using horizontal inheritance
mapping and bi-directional relationships in my application.
The model I'm
using is the following:
--- ------- -------
| A | =>
| B | => | C |
--- ------- -------
^ ^
^
^ ^ ^
| | |
| relB |
| | |
|
V |
| ----- |
\-relA---> | X | <----relC--/
-----
- B inherits from A and C inherits from B.
- relA is a
one-to-many relationship between X and A
- relB is a one-to-many relationship
between X and B
- relC is a one-to-many relationship between X and C
When
i must create a relationship between an object in A and an object in X i use
objectInX.addObjectToBothSidesOfRelationshipWithKey(objectInA, "relA"),
and
so on.
The weird thing is that when I add an object in C with addObjectToBothSides...
it appears in X.relC array, but also in X.relA and X.relB.
I hope that
someone could help me, because I don't know anymore what to do.
Thanks
in advance.
Paolo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden