Re: Xcode 4 core data mapping model not creating inherited attributes/relationships
Re: Xcode 4 core data mapping model not creating inherited attributes/relationships
- Subject: Re: Xcode 4 core data mapping model not creating inherited attributes/relationships
- From: Martin Hewitson <email@hidden>
- Date: Sat, 06 Aug 2011 21:30:29 +0200
Furthermore, I can't delete the new model version I made (as was pointed out in a different thread a few days ago). If I select a model version in the project tree then look in the file menu, one entry is "Close 'Untitled'". If I select the next model version, the menu item says "Close 'Untitled 2'". Both model versions have correct names (not Untitled*) in the project tree and on disk. What's going on, I wonder?
Martin
On Aug 6, 2011, at 09:22 PM, Martin Hewitson wrote:
> Dear list,
>
> Perhaps I'm doing something wrong, but it seems that when creating a core data mapping model, the attributes of the superclass are not included in the mapping of the subclass.
>
> Suppose I have EntityA with attribute Name and I have EntityB which is a subclass of EntityA. When I create a mapping model in Xcode 4 the mapping for Name is not included in the EntityBtoEntityB mapping. The result is that migrated core data models end up broken because the superclass attributes are not present in the updated model objects. I checked back to some old mapping models created in Xcode 3. There the subclasses do get mapping rules for the superclass attributes. I'm 99.9% certain I didn't add those myself, but rather they were created when creating the mapping model. I tried to add the necessary attributes to the mapping model in Xcode 4, but it isn't possible to add a rule based on the super class attributes, as far as I can see. This leaves me stuck. I can't create a working mapping model.
>
> Another thing I noticed. In an Xcode 3 mapping model (when loaded in Xcode 4) the entity mapping for existing entities have a type 'Copy'. In the mapping model created in Xcode 4, the type in now 'Transform'. I don't see any way to change this. Is it relevant?
>
> Any clues gratefully received.
>
> Martin
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Martin Hewitson
> Albert-Einstein-Institut
> Max-Planck-Institut fuer
> Gravitationsphysik und Universitaet Hannover
> Callinstr. 38, 30167 Hannover, Germany
> Tel: +49-511-762-17121, Fax: +49-511-762-5861
> E-Mail: email@hidden
> WWW: http://www.aei.mpg.de/~hewitson
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden