Skip to content
Browse files

[DEV] Differently-generated test files.

  • Loading branch information...
1 parent 8902305 commit bc237e76ed69f65583ad4a726b50b32cb34c1594 @rentzsch committed Mar 27, 2010
View
2 mogeneratorTestMule/MOs/_ChildMO.h
@@ -11,6 +11,8 @@
@interface _ChildMO : HumanMO {}
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_;
++ (NSString*)entityName;
++ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (ChildMOID*)objectID;
View
9 mogeneratorTestMule/MOs/_ChildMO.m
@@ -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];
}
View
2 mogeneratorTestMule/MOs/_HumanMO.h
@@ -11,6 +11,8 @@
@interface _HumanMO : MyBaseClass {}
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_;
++ (NSString*)entityName;
++ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (HumanMOID*)objectID;
View
9 mogeneratorTestMule/MOs/_HumanMO.m
@@ -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];
}
View
2 mogeneratorTestMule/MOs/_ParentMO.h
@@ -11,6 +11,8 @@
@interface _ParentMO : HumanMO {}
+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_;
++ (NSString*)entityName;
++ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_;
- (ParentMOID*)objectID;
View
9 mogeneratorTestMule/MOs/_ParentMO.m
@@ -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];
}

0 comments on commit bc237e7

Please sign in to comment.
Something went wrong with that request. Please try again.