Skip to content

Commit

Permalink
[DEV] Differently-generated test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
rentzsch committed Mar 27, 2010
1 parent 8902305 commit bc237e7
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mogeneratorTestMule/MOs/_ChildMO.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

@interface _ChildMO : HumanMO {}
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_;
+ (NSString*)entityName;
+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (ChildMOID*)objectID;


Expand Down
9 changes: 9 additions & 0 deletions mogeneratorTestMule/MOs/_ChildMO.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ + (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
return [NSEntityDescription insertNewObjectForEntityForName:@"Child" inManagedObjectContext:moc_];
}

+ (NSString*)entityName {
return @"Child";
}

+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_ {
NSParameterAssert(moc_);
return [NSEntityDescription entityForName: @"Child" inManagedObjectContext: moc_];
}

- (ChildMOID*)objectID {
return (ChildMOID*)[super objectID];
}
Expand Down
2 changes: 2 additions & 0 deletions mogeneratorTestMule/MOs/_HumanMO.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

@interface _HumanMO : MyBaseClass {}
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_;
+ (NSString*)entityName;
+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (HumanMOID*)objectID;


Expand Down
9 changes: 9 additions & 0 deletions mogeneratorTestMule/MOs/_HumanMO.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ + (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
return [NSEntityDescription insertNewObjectForEntityForName:@"Human" inManagedObjectContext:moc_];
}

+ (NSString*)entityName {
return @"Human";
}

+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_ {
NSParameterAssert(moc_);
return [NSEntityDescription entityForName: @"Human" inManagedObjectContext: moc_];
}

- (HumanMOID*)objectID {
return (HumanMOID*)[super objectID];
}
Expand Down
2 changes: 2 additions & 0 deletions mogeneratorTestMule/MOs/_ParentMO.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

@interface _ParentMO : HumanMO {}
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_;
+ (NSString*)entityName;
+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (ParentMOID*)objectID;


Expand Down
9 changes: 9 additions & 0 deletions mogeneratorTestMule/MOs/_ParentMO.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ + (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
return [NSEntityDescription insertNewObjectForEntityForName:@"Parent" inManagedObjectContext:moc_];
}

+ (NSString*)entityName {
return @"Parent";
}

+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_ {
NSParameterAssert(moc_);
return [NSEntityDescription entityForName: @"Parent" inManagedObjectContext: moc_];
}

- (ParentMOID*)objectID {
return (ParentMOID*)[super objectID];
}
Expand Down

0 comments on commit bc237e7

Please sign in to comment.