diff --git a/README.md b/README.md index 44ca9d7..a46956f 100644 --- a/README.md +++ b/README.md @@ -64,8 +64,8 @@ public class Company: Object { public class CompanyMapping : RealmMapping { public var adaptor: RealmAdaptor - public var primaryKeys: Array { - return [ "uuid" ] + public var primaryKeys: Dictionary { + return [ "uuid" : "data.uuid" ] } public required init(adaptor: RealmAdaptor) { @@ -77,8 +77,8 @@ public class CompanyMapping : RealmMapping { tomap.employees <- .Mapping("employees", employeeMapping) >*< tomap.founder <- .Mapping("founder", employeeMapping) >*< - tomap.uuid <- "uuid" >*< - tomap.name <- "name" >*< + tomap.uuid <- "data.uuid" >*< + tomap.name <- "data.name" >*< tomap.foundingDate <- "data.founding_date" >*< tomap.pendingLawsuits <- "data.lawsuits.pending" >*< context