deleted unnecessary Equatable and Hashable custom implementations

This commit is contained in:
John Estropia
2018-09-19 11:06:19 +09:00
parent ab40532801
commit 45e110755d
19 changed files with 125 additions and 193 deletions

View File

@@ -167,15 +167,13 @@ public /*abstract*/ class DynamicEntity: Hashable {
}
// MARK: Hashable
public var hashValue: Int {
return ObjectIdentifier(self.type).hashValue
^ self.entityName.hashValue
^ self.isAbstract.hashValue
^ (self.versionHashModifier ?? "").hashValue
// ^ self.indexes.hashValue
// ^ self.uniqueConstraints.hashValue
public func hash(into hasher: inout Hasher) {
hasher.combine(ObjectIdentifier(self.type))
hasher.combine(self.entityName)
hasher.combine(self.isAbstract)
hasher.combine(self.versionHashModifier ?? "")
}