Xcode 4 core data mapping model not creating inherited attributes/relationships
Xcode 4 core data mapping model not creating inherited attributes/relationships
- Subject: Xcode 4 core data mapping model not creating inherited attributes/relationships
- From: Martin Hewitson <email@hidden>
- Date: Sat, 06 Aug 2011 21:22:05 +0200
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
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