-
Notifications
You must be signed in to change notification settings - Fork 0
/
Result.m
49 lines (39 loc) · 862 Bytes
/
Result.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// Result.m
// EHR
//
// Created by Paweł Smoczyk on 11-04-29.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "Result.h"
#import "Profile.h"
@implementation Result
@dynamic guid;
@dynamic profileGuid;
@dynamic result;
@dynamic date;
@dynamic units;
@dynamic name;
@dynamic note;
@dynamic profile;
#pragma mark Mappable methods
+ (NSString*)primaryKeyProperty {
return @"guid";
}
+ (NSDictionary*)elementToPropertyMappings {
return [NSDictionary dictionaryWithKeysAndObjects:
@"id", @"guid",
@"profile_id", @"profileGuid",
@"name", @"name",
@"result", @"result",
@"date", @"date",
@"units", @"units",
@"note", @"note",
nil];
}
+ (NSDictionary*)relationshipToPrimaryKeyPropertyMappings {
return [NSDictionary dictionaryWithKeysAndObjects:
@"profile", @"profileGuid",
nil];
}
@end