cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1164789 - in /cayenne/main/trunk/framework: cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/ cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/ cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ cayen...
Date Sat, 03 Sep 2011 02:00:33 GMT
Author: aadamchik
Date: Sat Sep  3 02:00:32 2011
New Revision: 1164789

URL: http://svn.apache.org/viewvc?rev=1164789&view=rev
Log:
CAY-1610 ObjectContext API to use varargs

it is interesting how ALL our unit test uses of
'invalidateObjects' had Arrays.asList or COllections.singleton wrappers
cleaning up all those

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/BaseContext.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/ObjectContext.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOMany2OneNoRevTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOneToManyFKTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOneToOneFKTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDataObjectInContextTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/FlattenedRelationshipsTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/NestedCayenneContextTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextBinaryPKTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextCompoundRelTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextExtrasTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextObjectTrackingTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextProcedureQueryTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextRefreshingTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextSharedCacheTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataDomainCallbacksTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/IdentityColumnsTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NestedDataContextWriteTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/OptimisticLockingTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/SingleTableInheritanceTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ToManyListTest.java
    cayenne/main/trunk/framework/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/relationship/UuidRelationshipFilter.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/BaseContext.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/BaseContext.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/BaseContext.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/BaseContext.java
Sat Sep  3 02:00:32 2011
@@ -437,7 +437,7 @@ public abstract class BaseContext implem
     /**
      * @since 3.1
      */
-    public void invalidateObjects(Object... objects) {
+    public <T> void invalidateObjects(T... objects) {
         if (objects != null && objects.length > 0) {
             performGenericQuery(new RefreshQuery(Arrays.asList(objects)));
         }
@@ -538,7 +538,7 @@ public abstract class BaseContext implem
     /**
      * @since 3.1
      */
-    public void deleteObjects(Object... objects) throws DeleteDenyException {
+    public <T> void deleteObjects(T... objects) throws DeleteDenyException {
         if (objects == null || objects.length == 0) {
             return;
         }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/ObjectContext.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/ObjectContext.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/ObjectContext.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/ObjectContext.java
Sat Sep  3 02:00:32 2011
@@ -119,7 +119,7 @@ public interface ObjectContext extends S
      *             delete rule is applicable for object deletion.
      * @since 3.1
      */
-    void deleteObjects(Object... objects) throws DeleteDenyException;
+    <T> void deleteObjects(T... objects) throws DeleteDenyException;
 
     /**
      * A callback method that child Persistent objects are expected to call before
@@ -220,7 +220,7 @@ public interface ObjectContext extends S
      * 
      * @since 3.1
      */
-    void invalidateObjects(Object... objects);
+    <T> void invalidateObjects(T... objects);
 
     /**
      * Returns a user-defined property previously set via 'setUserProperty'. Note that it

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOMany2OneNoRevTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOMany2OneNoRevTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOMany2OneNoRevTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOMany2OneNoRevTest.java
Sat Sep  3 02:00:32 2011
@@ -19,8 +19,6 @@
 
 package org.apache.cayenne;
 
-import java.util.Arrays;
-
 import org.apache.cayenne.di.Inject;
 import org.apache.cayenne.testdo.testmap.Artist;
 import org.apache.cayenne.testdo.testmap.Painting1;
@@ -48,7 +46,7 @@ public class CDOMany2OneNoRevTest extend
         context.commitChanges();
         ObjectId aid = a1.getObjectId();
         ObjectId pid = p1.getObjectId();
-        context.invalidateObjects(Arrays.asList(a1, p1));
+        context.invalidateObjects(a1, p1);
 
         Painting1 p2 = (Painting1) Cayenne.objectForPK(context, pid);
         Artist a2 = p2.getToArtist();

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOneToManyFKTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOneToManyFKTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOneToManyFKTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOneToManyFKTest.java
Sat Sep  3 02:00:32 2011
@@ -19,8 +19,6 @@
 
 package org.apache.cayenne;
 
-import java.util.Arrays;
-
 import org.apache.cayenne.access.DataContext;
 import org.apache.cayenne.di.Inject;
 import org.apache.cayenne.test.jdbc.DBHelper;
@@ -63,7 +61,7 @@ public class CDOOneToManyFKTest extends 
         src.addToDeps(target);
         context.commitChanges();
 
-        context.invalidateObjects(Arrays.asList(src, target, src2));
+        context.invalidateObjects(src, target, src2);
 
         ToManyFkRoot src1 = (ToManyFkRoot) Cayenne
                 .objectForPK(context, src.getObjectId());
@@ -72,7 +70,7 @@ public class CDOOneToManyFKTest extends 
         // resolve HOLLOW
         assertSame(src1, ((ToManyFkDep) src1.getDeps().get(0)).getRoot());
 
-        context.invalidateObjects(Arrays.asList(src1, src1.getDeps().get(0)));
+        context.invalidateObjects(src1, src1.getDeps().get(0));
 
         ToManyFkDep target2 = (ToManyFkDep) Cayenne.objectForPK(context, target
                 .getObjectId());

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOneToOneFKTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOneToOneFKTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOneToOneFKTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CDOOneToOneFKTest.java
Sat Sep  3 02:00:32 2011
@@ -19,8 +19,6 @@
 
 package org.apache.cayenne;
 
-import java.util.Arrays;
-
 import org.apache.cayenne.access.DataContext;
 import org.apache.cayenne.di.Inject;
 import org.apache.cayenne.query.ObjectIdQuery;
@@ -57,14 +55,14 @@ public class CDOOneToOneFKTest extends S
         src.setToOneToFK(target);
         context.commitChanges();
 
-        context.invalidateObjects(Arrays.asList(src, target));
+        context.invalidateObjects(src, target);
 
         ToOneFK2 src1 = (ToOneFK2) Cayenne.objectForPK(context, src.getObjectId());
         assertNotNull(src1.getToOneToFK());
         // resolve HOLLOW
         assertSame(src1, src1.getToOneToFK().getToPK());
 
-        context.invalidateObjects(Arrays.asList(src1, src1.getToOneToFK()));
+        context.invalidateObjects(src1, src1.getToOneToFK());
 
         ToOneFK1 target2 = (ToOneFK1) Cayenne.objectForPK(context, target.getObjectId());
         assertNotNull(target2.getToPK());

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDataObjectInContextTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDataObjectInContextTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDataObjectInContextTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDataObjectInContextTest.java
Sat Sep  3 02:00:32 2011
@@ -19,7 +19,6 @@
 
 package org.apache.cayenne;
 
-import java.util.Collections;
 import java.util.List;
 
 import org.apache.cayenne.access.DataContext;
@@ -321,7 +320,7 @@ public class CayenneDataObjectInContextT
         assertEquals(PersistenceState.COMMITTED, object.getPersistenceState());
 
         // refetch
-        context.invalidateObjects(Collections.singleton(object));
+        context.invalidateObjects(object);
 
         Artist object2 = Cayenne.objectForPK(context, Artist.class, 3);
         assertNotNull(object2);

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/FlattenedRelationshipsTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/FlattenedRelationshipsTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/FlattenedRelationshipsTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/FlattenedRelationshipsTest.java
Sat Sep  3 02:00:32 2011
@@ -20,7 +20,6 @@
 package org.apache.cayenne;
 
 import java.sql.Types;
-import java.util.Arrays;
 import java.util.List;
 
 import org.apache.cayenne.access.DataContext;
@@ -129,7 +128,7 @@ public class FlattenedRelationshipsTest 
 
         int pk = Cayenne.intPKForObject(obj01);
 
-        context.invalidateObjects(Arrays.asList(obj01, obj11, obj12));
+        context.invalidateObjects(obj01, obj11, obj12);
 
         FlattenedTest1 fresh01 = Cayenne.objectForPK(context1, FlattenedTest1.class, pk);
 
@@ -226,7 +225,7 @@ public class FlattenedRelationshipsTest 
         ft2.addToFt3Array(ft3);
         context.commitChanges();
 
-        context.invalidateObjects(Arrays.asList(ft1, ft2, ft3));
+        context.invalidateObjects(ft1, ft2, ft3);
 
         SelectQuery q = new SelectQuery(FlattenedTest3.class);
         q.setQualifier(ExpressionFactory.matchExp("name", "FT3Name"));

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/NestedCayenneContextTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/NestedCayenneContextTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/NestedCayenneContextTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/NestedCayenneContextTest.java
Sat Sep  3 02:00:32 2011
@@ -18,7 +18,6 @@
  ****************************************************************/
 package org.apache.cayenne;
 
-import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
 
@@ -442,7 +441,7 @@ public class NestedCayenneContextTest ex
         final ClientMtTable1 childCommitted = (ClientMtTable1) objects.get(1);
 
         final ClientMtTable1 childHollow = (ClientMtTable1) objects.get(3);
-        child.invalidateObjects(Collections.singleton(childHollow));
+        child.invalidateObjects(childHollow);
 
         queryInterceptor.runWithQueriesBlocked(new UnitTestClosure() {
 
@@ -605,7 +604,7 @@ public class NestedCayenneContextTest ex
         childDeleted.setGlobalAttribute1("DDD");
 
         ClientMtTable1 childHollow = (ClientMtTable1) objects.get(3);
-        child.invalidateObjects(Collections.singleton(childHollow));
+        child.invalidateObjects(childHollow);
 
         child.commitChanges();
 

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextBinaryPKTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextBinaryPKTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextBinaryPKTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextBinaryPKTest.java
Sat Sep  3 02:00:32 2011
@@ -19,8 +19,6 @@
 
 package org.apache.cayenne.access;
 
-import java.util.Arrays;
-
 import org.apache.cayenne.PersistenceState;
 import org.apache.cayenne.di.Inject;
 import org.apache.cayenne.query.SelectQuery;
@@ -81,7 +79,7 @@ public class DataContextBinaryPKTest ext
             master.addToBinaryPKDetails(detail);
 
             context.commitChanges();
-            context.invalidateObjects(Arrays.asList(master, detail));
+            context.invalidateObjects(master, detail);
 
             BinaryPKTest2 fetchedDetail = (BinaryPKTest2) context1.performQuery(
                     new SelectQuery(BinaryPKTest2.class)).get(0);

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextCompoundRelTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextCompoundRelTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextCompoundRelTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextCompoundRelTest.java
Sat Sep  3 02:00:32 2011
@@ -19,7 +19,6 @@
 
 package org.apache.cayenne.access;
 
-import java.util.Arrays;
 import java.util.List;
 
 import org.apache.cayenne.di.Inject;
@@ -64,7 +63,7 @@ public class DataContextCompoundRelTest 
         detail.setName("d1");
 
         context.commitChanges();
-        context.invalidateObjects(Arrays.asList(master, detail));
+        context.invalidateObjects(master, detail);
 
         SelectQuery q = new SelectQuery(CompoundPkTestEntity.class);
         List<?> objs = context1.performQuery(q);
@@ -105,7 +104,7 @@ public class DataContextCompoundRelTest 
         detail1.setName("d2");
 
         context.commitChanges();
-        context.invalidateObjects(Arrays.asList(master, master1, detail, detail1));
+        context.invalidateObjects(master, master1, detail, detail1);
 
         Expression qual = ExpressionFactory.matchExp("toCompoundPk", master);
         SelectQuery q = new SelectQuery(CompoundFkTestEntity.class, qual);
@@ -141,7 +140,7 @@ public class DataContextCompoundRelTest 
         detail1.setName("d2");
 
         context.commitChanges();
-        context.invalidateObjects(Arrays.asList(master, master1, detail, detail1));
+        context.invalidateObjects(master, master1, detail, detail1);
 
         Expression qual = ExpressionFactory.matchExp("compoundFkArray", detail1);
         SelectQuery q = new SelectQuery(CompoundPkTestEntity.class, qual);

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextExtrasTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextExtrasTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextExtrasTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextExtrasTest.java
Sat Sep  3 02:00:32 2011
@@ -20,7 +20,6 @@
 package org.apache.cayenne.access;
 
 import java.sql.Types;
-import java.util.Collections;
 import java.util.Date;
 import java.util.List;
 
@@ -129,7 +128,7 @@ public class DataContextExtrasTest exten
         o1.setArtistName("a");
         context.commitChanges();
 
-        context.invalidateObjects(Collections.singleton(o1));
+        context.invalidateObjects(o1);
         assertEquals(PersistenceState.HOLLOW, o1.getPersistenceState());
         assertNull(o1.readPropertyDirectly("artistName"));
 

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextObjectTrackingTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextObjectTrackingTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextObjectTrackingTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextObjectTrackingTest.java
Sat Sep  3 02:00:32 2011
@@ -120,7 +120,7 @@ public class DataContextObjectTrackingTe
         assertNull(context.getObjectStore().getCachedSnapshot(oid));
     }
 
-    public void testInvalidateObject() {
+    public void testInvalidateObjects_Vararg() {
 
         DataRow row = new DataRow(10);
         row.put("ARTIST_ID", new Integer(1));
@@ -133,7 +133,7 @@ public class DataContextObjectTrackingTe
         assertSame(context, obj.getObjectContext());
         assertSame(obj, context.getGraphManager().getNode(oid));
 
-        context.invalidateObjects(Collections.singletonList(obj));
+        context.invalidateObjects(obj);
 
         assertEquals(PersistenceState.HOLLOW, obj.getPersistenceState());
         assertSame(context, obj.getObjectContext());

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextProcedureQueryTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextProcedureQueryTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextProcedureQueryTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextProcedureQueryTest.java
Sat Sep  3 02:00:32 2011
@@ -21,7 +21,6 @@ package org.apache.cayenne.access;
 
 import java.math.BigDecimal;
 import java.sql.Types;
-import java.util.Collections;
 import java.util.List;
 import java.util.Map;
 import java.util.Map.Entry;
@@ -164,7 +163,7 @@ public class DataContextProcedureQueryTe
         Painting p = a.getPaintingArray().get(0);
 
         // invalidate painting, it may have been updated in the proc
-        context.invalidateObjects(Collections.singletonList(p));
+        context.invalidateObjects(p);
         assertEquals(2000, p.getEstimatedPrice().intValue());
     }
 
@@ -190,7 +189,7 @@ public class DataContextProcedureQueryTe
         Painting p = a.getPaintingArray().get(0);
 
         // invalidate painting, it may have been updated in the proc
-        context.invalidateObjects(Collections.singletonList(p));
+        context.invalidateObjects(p);
         assertEquals(2000, p.getEstimatedPrice().intValue());
     }
 
@@ -220,7 +219,7 @@ public class DataContextProcedureQueryTe
         Painting p = a.getPaintingArray().get(0);
 
         // invalidate painting, it may have been updated in the proc
-        context.invalidateObjects(Collections.singletonList(p));
+        context.invalidateObjects(p);
         assertEquals(2000, p.getEstimatedPrice().intValue());
     }
 
@@ -335,7 +334,7 @@ public class DataContextProcedureQueryTe
         Painting p = a.getPaintingArray().get(0);
 
         // invalidate painting, it may have been updated in the proc
-        context.invalidateObjects(Collections.singletonList(p));
+        context.invalidateObjects(p);
         assertEquals(1101.01, p.getEstimatedPrice().doubleValue(), 0.02);
     }
 

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextRefreshingTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextRefreshingTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextRefreshingTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextRefreshingTest.java
Sat Sep  3 02:00:32 2011
@@ -20,7 +20,6 @@
 package org.apache.cayenne.access;
 
 import java.sql.Types;
-import java.util.Collections;
 import java.util.Date;
 import java.util.List;
 
@@ -244,7 +243,7 @@ public class DataContextRefreshingTest e
         // update via DataNode directly
         assertEquals(1, tArtist.update().set("ARTIST_NAME", nameAfter).execute());
 
-        context.invalidateObjects(Collections.singletonList(artist));
+        context.invalidateObjects(artist);
         assertEquals(nameAfter, artist.getArtistName());
     }
 
@@ -260,7 +259,7 @@ public class DataContextRefreshingTest e
 
         assertEquals(1, tPainting.update().set("ARTIST_ID", null, Types.BIGINT).execute());
 
-        context.invalidateObjects(Collections.singletonList(painting));
+        context.invalidateObjects(painting);
         assertNull(painting.getToArtist());
     }
 
@@ -275,7 +274,7 @@ public class DataContextRefreshingTest e
 
         assertEquals(1, tPainting.update().set("ARTIST_ID", 6).execute());
 
-        context.invalidateObjects(Collections.singletonList(painting));
+        context.invalidateObjects(painting);
         assertNotSame(artistBefore, painting.getToArtist());
         assertEquals("artist3", painting.getToArtist().getArtistName());
     }
@@ -289,7 +288,7 @@ public class DataContextRefreshingTest e
 
         assertEquals(1, tPainting.update().set("ARTIST_ID", 5).execute());
 
-        context.invalidateObjects(Collections.singletonList(painting));
+        context.invalidateObjects(painting);
         assertNotNull(painting.getToArtist());
         assertEquals("artist2", painting.getToArtist().getArtistName());
     }
@@ -303,7 +302,7 @@ public class DataContextRefreshingTest e
 
         assertEquals(1, tPainting.delete().execute());
 
-        context.invalidateObjects(Collections.singletonList(artist));
+        context.invalidateObjects(artist);
         assertEquals(artist.getPaintingArray().size(), 0);
     }
 
@@ -318,7 +317,7 @@ public class DataContextRefreshingTest e
         tPainting.insert(4, "p", 5, 1000);
 
         assertEquals(artist.getPaintingArray().size(), 0);
-        context.invalidateObjects(Collections.singletonList(artist));
+        context.invalidateObjects(artist);
         assertEquals(artist.getPaintingArray().size(), 1);
     }
 
@@ -331,7 +330,7 @@ public class DataContextRefreshingTest e
                 .get(0);
         assertNotNull(artist);
 
-        context.invalidateObjects(Collections.singletonList(artist));
+        context.invalidateObjects(artist);
         assertEquals(PersistenceState.HOLLOW, artist.getPersistenceState());
 
         int queries = queryInterceptor.runWithQueryCounter(new UnitTestClosure() {

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextSharedCacheTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextSharedCacheTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextSharedCacheTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextSharedCacheTest.java
Sat Sep  3 02:00:32 2011
@@ -20,7 +20,6 @@
 package org.apache.cayenne.access;
 
 import java.util.Collection;
-import java.util.Collections;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -562,7 +561,7 @@ public class DataContextSharedCacheTest 
     public void testSnapshotEvictedForHollow() throws Exception {
         String originalName = artist.getArtistName();
 
-        context.invalidateObjects(Collections.singletonList(artist));
+        context.invalidateObjects(artist);
         assertEquals(PersistenceState.HOLLOW, artist.getPersistenceState());
         assertNull(context.getObjectStore().getDataRowCache().getCachedSnapshot(
                 artist.getObjectId()));
@@ -587,7 +586,7 @@ public class DataContextSharedCacheTest 
         context1.prepareForAccess(altArtist, null, false);
         assertEquals(PersistenceState.COMMITTED, altArtist.getPersistenceState());
 
-        context.invalidateObjects(Collections.singletonList(artist));
+        context.invalidateObjects(artist);
 
         // original context
         assertEquals(PersistenceState.HOLLOW, artist.getPersistenceState());

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextTest.java
Sat Sep  3 02:00:32 2011
@@ -682,6 +682,28 @@ public class DataContextTest extends Ser
         assertTrue(context.hasChanges());
     }
 
+    public void testInvalidateObjects_Vararg() throws Exception {
+
+        DataRow row = new DataRow(10);
+        row.put("ARTIST_ID", new Integer(1));
+        row.put("ARTIST_NAME", "ArtistXYZ");
+        row.put("DATE_OF_BIRTH", new Date());
+        DataObject object = context.objectFromDataRow(Artist.class, row);
+        ObjectId oid = object.getObjectId();
+
+        // insert object into the ObjectStore
+        context.getObjectStore().registerNode(oid, object);
+
+        assertSame(object, context.getObjectStore().getNode(oid));
+        assertNotNull(context.getObjectStore().getCachedSnapshot(oid));
+
+        context.invalidateObjects(object);
+
+        assertSame(oid, object.getObjectId());
+        assertNull(context.getObjectStore().getCachedSnapshot(oid));
+        assertSame(object, context.getObjectStore().getNode(oid));
+    }
+    
     public void testInvalidateObjects() throws Exception {
 
         DataRow row = new DataRow(10);
@@ -697,7 +719,7 @@ public class DataContextTest extends Ser
         assertSame(object, context.getObjectStore().getNode(oid));
         assertNotNull(context.getObjectStore().getCachedSnapshot(oid));
 
-        context.invalidateObjects(Collections.singletonList(object));
+        context.invalidateObjects(Collections.singleton(object));
 
         assertSame(oid, object.getObjectId());
         assertNull(context.getObjectStore().getCachedSnapshot(oid));

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataDomainCallbacksTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataDomainCallbacksTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataDomainCallbacksTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataDomainCallbacksTest.java
Sat Sep  3 02:00:32 2011
@@ -18,8 +18,6 @@
  ****************************************************************/
 package org.apache.cayenne.access;
 
-import java.util.Arrays;
-
 import org.apache.cayenne.ObjectContext;
 import org.apache.cayenne.PersistenceState;
 import org.apache.cayenne.Persistent;
@@ -157,7 +155,7 @@ public class DataDomainCallbacksTest ext
         p1.setPaintingTitle("XXX");
         context.commitChanges();
 
-        context.invalidateObjects(Arrays.asList(a1, p1));
+        context.invalidateObjects(a1, p1);
 
         SelectQuery q = new SelectQuery(Painting.class);
         p1 = (Painting) context1.performQuery(q).get(0);

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/IdentityColumnsTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/IdentityColumnsTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/IdentityColumnsTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/IdentityColumnsTest.java
Sat Sep  3 02:00:32 2011
@@ -19,8 +19,6 @@
 
 package org.apache.cayenne.access;
 
-import java.util.Arrays;
-import java.util.Collections;
 import java.util.List;
 
 import org.apache.cayenne.Cayenne;
@@ -88,7 +86,7 @@ public class IdentityColumnsTest extends
         idObject.getObjectContext().commitChanges();
 
         ObjectId id = idObject.getObjectId();
-        context.invalidateObjects(Collections.singleton(idObject));
+        context.invalidateObjects(idObject);
 
         SelectQuery q = new SelectQuery(GeneratedColumnTestEntity.class);
         q.setPageSize(10);
@@ -114,7 +112,7 @@ public class IdentityColumnsTest extends
         assertTrue(id >= 0);
 
         // make sure that id is the same as id in the DB
-        context.invalidateObjects(Collections.singleton(idObject));
+        context.invalidateObjects(idObject);
         GeneratedColumnTestEntity object = Cayenne.objectForPK(
                 context,
                 GeneratedColumnTestEntity.class,
@@ -167,7 +165,7 @@ public class IdentityColumnsTest extends
         d.setToMaster(m);
         context.commitChanges();
 
-        context.invalidateObjects(Arrays.asList(m, d));
+        context.invalidateObjects(m, d);
 
         context.prepareForAccess(d, null, false);
 
@@ -219,7 +217,7 @@ public class IdentityColumnsTest extends
             assertTrue(ids[i] > 0);
         }
 
-        context.invalidateObjects(Arrays.asList(idObjects));
+        context.invalidateObjects(idObjects);
 
         for (int i = 0; i < ids.length; i++) {
             GeneratedColumnTestEntity object = Cayenne.objectForPK(
@@ -274,7 +272,7 @@ public class IdentityColumnsTest extends
                     GeneratedColumnCompKey.GENERATED_COLUMN_PK_COLUMN);
             assertNotNull(dbGeneratedID2);
 
-            context.invalidateObjects(Arrays.asList(master, dep1, dep2));
+            context.invalidateObjects(master, dep1, dep2);
 
             Object fetchedDep2 = Cayenne.objectForPK(context, id2);
             assertNotNull(fetchedDep2);
@@ -309,7 +307,7 @@ public class IdentityColumnsTest extends
         assertTrue(id2 >= 0);
         assertEquals(id1, id2);
 
-        context.invalidateObjects(Arrays.asList(master2, dependent));
+        context.invalidateObjects(master2, dependent);
 
         assertNotNull(Cayenne.objectForPK(context, GeneratedColumnTestEntity.class, id1));
         assertNotNull(Cayenne.objectForPK(context, GeneratedColumnDep.class, id2));
@@ -344,7 +342,7 @@ public class IdentityColumnsTest extends
         assertEquals(id1, id2);
 
         // refetch from DB
-        context.invalidateObjects(Arrays.asList(idObject, dependent));
+        context.invalidateObjects(idObject, dependent);
 
         assertNotNull(Cayenne.objectForPK(context, GeneratedColumnTestEntity.class, id1));
         assertNotNull(Cayenne.objectForPK(context, GeneratedColumnDep.class, id2));

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NestedDataContextWriteTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NestedDataContextWriteTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NestedDataContextWriteTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NestedDataContextWriteTest.java
Sat Sep  3 02:00:32 2011
@@ -21,7 +21,6 @@ package org.apache.cayenne.access;
 
 import java.sql.Types;
 import java.util.Collection;
-import java.util.Collections;
 import java.util.HashMap;
 import java.util.List;
 
@@ -199,7 +198,7 @@ public class NestedDataContextWriteTest 
         final Artist childCommitted = (Artist) objects.get(1);
 
         final Artist childHollow = (Artist) objects.get(3);
-        childContext.invalidateObjects(Collections.singleton(childHollow));
+        childContext.invalidateObjects(childHollow);
 
         queryInterceptor.runWithQueriesBlocked(new UnitTestClosure() {
 
@@ -314,7 +313,7 @@ public class NestedDataContextWriteTest 
         childDeleted.setArtistName("DDD");
 
         Artist childHollow = (Artist) objects.get(3);
-        childContext.invalidateObjects(Collections.singleton(childHollow));
+        childContext.invalidateObjects(childHollow);
 
         childContext.commitChanges();
 

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/NumericTypesTest.java
Sat Sep  3 02:00:32 2011
@@ -21,7 +21,6 @@ package org.apache.cayenne.access;
 
 import java.math.BigDecimal;
 import java.math.BigInteger;
-import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
 import java.util.Map;
@@ -190,7 +189,7 @@ public class NumericTypesTest extends Se
         BitTestEntity falseObject = (BitTestEntity) context.newObject("BitTestEntity");
         falseObject.setBitColumn(Boolean.FALSE);
         context.commitChanges();
-        context.invalidateObjects(Arrays.asList(trueObject, falseObject));
+        context.invalidateObjects(trueObject, falseObject);
 
         // fetch true...
         Expression trueQ = ExpressionFactory.matchExp("bitColumn", Boolean.TRUE);
@@ -232,7 +231,7 @@ public class NumericTypesTest extends Se
         falseObject.setBooleanColumn(Boolean.FALSE);
         context.commitChanges();
 
-        context.invalidateObjects(Arrays.asList(trueObject, falseObject));
+        context.invalidateObjects(trueObject, falseObject);
 
         // fetch true...
         Expression trueQ = ExpressionFactory.matchExp("booleanColumn", Boolean.TRUE);

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/OptimisticLockingTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/OptimisticLockingTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/OptimisticLockingTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/OptimisticLockingTest.java
Sat Sep  3 02:00:32 2011
@@ -20,7 +20,6 @@
 package org.apache.cayenne.access;
 
 import java.sql.Types;
-import java.util.Collections;
 import java.util.List;
 import java.util.Map;
 
@@ -149,7 +148,7 @@ public class OptimisticLockingTest exten
         context.commitChanges();
 
         context.deleteObjects(object);
-        context.invalidateObjects(Collections.singletonList(object));
+        context.invalidateObjects(object);
         context.commitChanges();
     }
 
@@ -185,7 +184,7 @@ public class OptimisticLockingTest exten
         object.setDescription("first update");
         context.commitChanges();
 
-        context.invalidateObjects(Collections.singletonList(object));
+        context.invalidateObjects(object);
         context.deleteObjects(object);
         context.commitChanges();
     }
@@ -268,7 +267,7 @@ public class OptimisticLockingTest exten
         context.commitChanges();
 
         object.setDescription("second update");
-        context.invalidateObjects(Collections.singletonList(object));
+        context.invalidateObjects(object);
 
         context.commitChanges();
     }
@@ -286,7 +285,7 @@ public class OptimisticLockingTest exten
         object.setDescription("first update");
         context.commitChanges();
 
-        context.invalidateObjects(Collections.singletonList(object));
+        context.invalidateObjects(object);
         object.setDescription("second update");
 
         context.commitChanges();

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/SingleTableInheritanceTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/SingleTableInheritanceTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/SingleTableInheritanceTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/SingleTableInheritanceTest.java
Sat Sep  3 02:00:32 2011
@@ -361,7 +361,7 @@ public class SingleTableInheritanceTest 
         employee.setPersonType("E");
 
         context.commitChanges();
-        context.invalidateObjects(Arrays.asList(company, rep, employee));
+        context.invalidateObjects(company, rep, employee);
 
         SelectQuery query = new SelectQuery(CustomerRepresentative.class);
         List<?> reps = context2.performQuery(query);

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ToManyListTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ToManyListTest.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ToManyListTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ToManyListTest.java
Sat Sep  3 02:00:32 2011
@@ -20,7 +20,6 @@
 package org.apache.cayenne.access;
 
 import java.lang.reflect.Field;
-import java.util.Collections;
 import java.util.LinkedList;
 import java.util.List;
 
@@ -200,7 +199,7 @@ public class ToManyListTest extends Serv
         p1.setPaintingTitle("p1");
 
         context.commitChanges();
-        context.invalidateObjects(Collections.singletonList(artist));
+        context.invalidateObjects(artist);
 
         ToManyList list = (ToManyList) artist.getPaintingArray();
         assertTrue("List must be unresolved...", list.isFault());
@@ -231,7 +230,7 @@ public class ToManyListTest extends Serv
         p1.setPaintingTitle("p1");
         artist.addToPaintingArray(p1);
         context.commitChanges();
-        context.invalidateObjects(Collections.singletonList(artist));
+        context.invalidateObjects(artist);
 
         ToManyList list = (ToManyList) artist.getPaintingArray();
         assertTrue("List must be unresolved...", list.isFault());

Modified: cayenne/main/trunk/framework/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/relationship/UuidRelationshipFilter.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/relationship/UuidRelationshipFilter.java?rev=1164789&r1=1164788&r2=1164789&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/relationship/UuidRelationshipFilter.java
(original)
+++ cayenne/main/trunk/framework/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/relationship/UuidRelationshipFilter.java
Sat Sep  3 02:00:32 2011
@@ -100,7 +100,7 @@ public class UuidRelationshipFilter impl
     @PostPersist(entityAnnotations = UuidRelationship.class)
     void postCommit(DataObject object) {
         // invalidate after commit to ensure UUID property is re-read...
-        object.getObjectContext().invalidateObjects(Collections.singleton(object));
+        object.getObjectContext().invalidateObjects(object);
     }
 
     /**



Mime
View raw message