Class

NSEntityMapping

A mapping instance that specifies how to map an entity from a source to a destination managed object model.

Declaration

@interface NSEntityMapping : NSObject

Topics

Managing Source Information

sourceEntityName

The source entity name for the entity mapping.

sourceEntityVersionHash

The version hash of the source entity for the entity mapping.

sourceExpression

The source expression for the entity mapping.

Managing Destination Information

destinationEntityName

The destination entity name for the entity mapping.

destinationEntityVersionHash

The version hash for the destination entity for the entity mapping.

Managing Mapping Information

name

The name of the entity mapping.

mappingType

The mapping type for the entity mapping.

entityMigrationPolicyClassName

The class name of the migration policy for the entity mapping.

attributeMappings

The array of attribute mappings for the entity mapping.

relationshipMappings

The array of relationship mappings for the entity mapping.

userInfo

The user info dictionary for the entity mapping.

Constants

NSUndefinedEntityMappingType

Specifies that the developer handles destination instance creation.

NSCustomEntityMappingType

Specifies a custom mapping.

NSAddEntityMappingType

Specifies that this is a new entity in the destination model.

NSRemoveEntityMappingType

Specifies that this entity is not present in the destination model.

NSCopyEntityMappingType

Specifies that source instances are migrated as-is.

NSTransformEntityMappingType

Specifies that entity exists in source and destination and is mapped.

Relationships

Inherits From

See Also

Entity Mapping

NSMigrationManager

A migration manager instance that performs a migration of data from one persistent store to another using a given mapping model.

NSMappingModel

A model instance that specifies how to map a model from a source to a destination managed object model.

NSEntityMigrationPolicy

A policy instance that customizes the migration process for an entity mapping.

NSEntityMappingType

Data type used for constants that specify types of entity mapping.

NSPropertyMapping

A mapping instance that specifies in a model how to map from a property in a source entity to a property in a destination entity.