<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSEntityMapping/destinationEntityVersionHash",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSEntityMapping(py)destinationEntityVersionHash"
  },
  "title" : "destinationEntityVersionHash"
}
-->

# destinationEntityVersionHash

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

```
var destinationEntityVersionHash: Data? { get set }
```

## Discussion

The version hash is calculated by Core Data based on the property values of the entity (see `NSEntityDescription`’s [`versionHash`](/documentation/CoreData/NSEntityDescription/versionHash) method). The `destinationEntityVersionHash` must equal the version hash of the destination entity represented by the mapping.

## See Also

[`sourceEntityVersionHash`](/documentation/CoreData/NSEntityMapping/sourceEntityVersionHash)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)