Re: Inherited Relationships using Different Destinations
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