cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From torehal...@apache.org
Subject svn commit: r452191 - in /incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne: CAYEntityResolver.m CAYPersistentObject.m
Date Mon, 02 Oct 2006 20:09:29 GMT
Author: torehalset
Date: Mon Oct  2 13:09:28 2006
New Revision: 452191

URL: http://svn.apache.org/viewvc?view=rev&rev=452191
Log:
logging

Modified:
    incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYEntityResolver.m
    incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYPersistentObject.m

Modified: incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYEntityResolver.m
URL: http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYEntityResolver.m?view=diff&rev=452191&r1=452190&r2=452191
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYEntityResolver.m (original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYEntityResolver.m Mon Oct  2 13:09:28
2006
@@ -89,12 +89,12 @@
         Class cl = NSClassFromString([entity name]);
         if(cl)
         {
-            NSLog(@"mapping client %@ to server %@", [entity name], [entity serverClassName]);
+            NSLog(@"INFO: mapping client %@ to server %@", [entity name], [entity serverClassName]);
             [cm setObject:[entity name] forKey:[entity serverClassName]];
         }
         else
         {
-            NSLog(@"Could not find cocoa class %@ for server class $@", [entity name], [entity
serverClassName]);
+            NSLog(@"ERROR: Could not find cocoa class %@ for server class %@", [entity name],
[entity serverClassName]);
         }
     }
 }

Modified: incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYPersistentObject.m
URL: http://svn.apache.org/viewvc/incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYPersistentObject.m?view=diff&rev=452191&r1=452190&r2=452191
==============================================================================
--- incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYPersistentObject.m (original)
+++ incubator/cayenne/sandbox/CocoaCayenne/CocoaCayenne/CAYPersistentObject.m Mon Oct  2 13:09:28
2006
@@ -78,9 +78,7 @@
 
 -(void)setObjectContext:(CAYObjectContext *)ctxt
 {
-    // do not need to retain/release as ctxt is our master
-	// [ctxt retain];
-	// [objectContext release];
+    // do not need to retain our master
 	objectContext = ctxt;
 }
 
@@ -112,7 +110,7 @@
     while(relname = [enumerator nextObject])
     {
         CAYClientObjRelationship *rel = (CAYClientObjRelationship *)[relations objectForKey:relname];
-        NSLog(@"create fault for relation %@.%@: %@", [objEntity name], relname, rel);
+        NSLog(@"DEBUG: create fault for relation %@.%@: %@", [objEntity name], relname, rel);
         CAYFault *fault = nil;
         if([rel isToMany])
         {
@@ -158,7 +156,7 @@
 			enumerator = [newElements objectEnumerator];
             while(element = [enumerator nextObject])
             {
-				NSLog(@"new element for rel %@: %@", key, element);
+				NSLog(@"DEBUG: new element for rel %@: %@", key, element);
 				[self addToManyTarget:element forKey:key setReverse:YES];
 			}
 			[newElements release];
@@ -170,7 +168,7 @@
 			enumerator = [removedElements objectEnumerator];
             while(element = [enumerator nextObject])
             {
-				NSLog(@"remove element for rel %@: %@", key, element);
+				NSLog(@"DEBUG: remove element for rel %@: %@", key, element);
 				[self removeToManyTarget:element forKey:key setReverse:YES];
 			}
 			[removedElements release];



Mime
View raw message