• 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
Re: Inherited Relationships using Different Destinations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inherited Relationships using Different Destinations


  • Subject: Re: Inherited Relationships using Different Destinations
  • From: Mike Schrag <email@hidden>
  • Date: Fri, 5 Sep 2008 08:08:36 -0400

So, I need a method on EORlationship so EOGenerator can check a Relationship to see not only if it is inherited, but if it's destination entity is different than the inherited method's destination Entity.

Or we could just make EORelationship.isInherited() return false if the destination of a subclass's to-one relationship is different than the superclass's relationship destination.
Given that nobody else has ever asked for this, I'm leaning towards not addressing it with some custom extension in the model ... You can already do this with other API, right (like the eogen sample code you showed)?

Incidentally, your line:
#if (($relationship.inherited && $relationship.destination.name != $relationship.relationshipOnParent.destination.name) || (! $relationship.inherited))


is actually logically equivalent to the shorter:
#if (!$relationship.inherited || $relationship.destination.name != $relationship.relationshipOnParent.destination.name)


ms

_______________________________________________
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


  • Follow-Ups:
    • Re: Inherited Relationships using Different Destinations
      • From: David Avendasora <email@hidden>
References: 
 >Inherited Relationships using Different Destinations (From: David Avendasora <email@hidden>)
 >Re: Inherited Relationships using Different Destinations (From: David Avendasora <email@hidden>)
 >Re: Inherited Relationships using Different Destinations (From: Mike Schrag <email@hidden>)
 >Re: Inherited Relationships using Different Destinations (From: David Avendasora <email@hidden>)
 >Re: Inherited Relationships using Different Destinations (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: Inherited Relationships using Different Destinations
  • Next by Date: Re: Inherited Relationships using Different Destinations
  • Previous by thread: Re: Inherited Relationships using Different Destinations
  • Next by thread: Re: Inherited Relationships using Different Destinations
  • Index(es):
    • Date
    • Thread