• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
horizontal inheritance and bi-directional relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: How to use datetime and boolean?
  • Next by Date: RE: Managing EOF caching
  • Previous by thread: Re: How to use datetime and boolean?
  • Next by thread: Rss feeds
  • Index(es):
    • Date
    • Thread