mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-01-12 22:51:50 +08:00
classes to eliminate issues with duplicated objects. closes #611, #612, #613, #618 * NSEntityDescription is now aware of the primaryKeyAttribute. Can be configured via Interface Builder within Xcode or programatically. * Added findByPrimaryKey: interface to the Core Data extensions. * Relaxed dependencies on RKManagedObjectMapping across the system now that primaryKey is available without a reference to the mapping.
39 lines
822 B
JSON
39 lines
822 B
JSON
[
|
|
{
|
|
"human": {
|
|
"id": 201,
|
|
"name": "Blake",
|
|
"human_id": 1,
|
|
"cats": [
|
|
{
|
|
"cat": {
|
|
"id": 254,
|
|
"sku_id": 149
|
|
}
|
|
},
|
|
{
|
|
"order_component": {
|
|
"id": 255,
|
|
"sku_id": 145
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"human": {
|
|
"id": 202,
|
|
"name": "Sarah",
|
|
"human_id": 1,
|
|
"cats": [
|
|
{
|
|
"order_component": {
|
|
"id": 256,
|
|
"sku_id": 144
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|