Re: vertical inheritance
Re: vertical inheritance
- Subject: Re: vertical inheritance
- From: Lachlan Deck <email@hidden>
- Date: Tue, 22 May 2007 05:54:11 +1000
On 22/05/2007, at 5:34 AM, Mike Schrag wrote:
Looking back, it's not quite as bad as I thought -- It's just that
they chose not to flatten a relationship of the same name, they
copied it. Creature.folderDatas vs Person.folderDatas. This leads
me to question whether it's intentionally not flattened or whether
it's a mistake and should have been flattened.
Actually, that raises a good point. So the relationships ought not
flattened but copied (apart from internalInfo). We see below that the
attributes that they join on are already flattened in the child...
that's why the relationship shouldn't also be flattened but copied.
Okay, that makes sense.
Creature:
{
deleteRule = EODeleteRuleCascade;
destination = FolderData;
internalInfo = {_nameInObjectStore = folderDatas; };
isToMany = Y;
joinSemantic = EOInnerJoin;
joins = ({destinationAttribute = dataId; sourceAttribute
= creatureId; });
name = folderDatas;
ownsDestination = Y;
propagatesPrimaryKey = Y;
},
Person:
{
deleteRule = EODeleteRuleCascade;
destination = FolderData;
isToMany = Y;
joinSemantic = EOInnerJoin;
joins = ({destinationAttribute = dataId; sourceAttribute
= creatureId; });
name = folderDatas;
ownsDestination = Y;
propagatesPrimaryKey = Y;
},
with regards,
--
Lachlan Deck
_______________________________________________
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