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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to