db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r452830 - /db/ojb/trunk/src/test/org/apache/ojb/broker/NestedFieldsTest.java
Date Wed, 04 Oct 2006 10:59:12 GMT
Author: arminw
Date: Wed Oct  4 03:59:11 2006
New Revision: 452830

URL: http://svn.apache.org/viewvc?view=rev&rev=452830
Log:
use IdentityFactory

Modified:
    db/ojb/trunk/src/test/org/apache/ojb/broker/NestedFieldsTest.java

Modified: db/ojb/trunk/src/test/org/apache/ojb/broker/NestedFieldsTest.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/test/org/apache/ojb/broker/NestedFieldsTest.java?view=diff&rev=452830&r1=452829&r2=452830
==============================================================================
--- db/ojb/trunk/src/test/org/apache/ojb/broker/NestedFieldsTest.java (original)
+++ db/ojb/trunk/src/test/org/apache/ojb/broker/NestedFieldsTest.java Wed Oct  4 03:59:11
2006
@@ -49,7 +49,7 @@
         broker.store(nested);
         broker.commitTransaction();
 
-        Identity oid = new Identity(nested, broker);
+        Identity oid = broker.serviceIdentity().buildIdentity(nested);
 
         assertNotNull(nested.getNestedDetail());
         assertNotNull(nested.getNestedDetail().getNestedDetailDetail());
@@ -106,7 +106,7 @@
         broker.store(nested);
         broker.commitTransaction();
 
-        Identity oid = new Identity(nested, broker);
+        Identity oid = broker.serviceIdentity().buildIdentity(nested);
 
         assertNotNull(nested.getNestedDetail());
         assertNull(nested.getNestedDetail().getNestedDetailDetail());
@@ -152,7 +152,7 @@
         broker.store(nested);
         broker.commitTransaction();
 
-        Identity oid = new Identity(nested, broker);
+        Identity oid = broker.serviceIdentity().buildIdentity(nested);
 
         // clear cache and retrieve copy of nested object
         broker.clearCache();
@@ -194,11 +194,12 @@
         d.setNestedEntryCollection(entryList);
 
         NestedMain nested = new NestedMain("main_object_" + timestamp, d);
-        Identity oid = new Identity(nested, broker);
 
         broker.beginTransaction();
         broker.store(nested);
         broker.commitTransaction();
+
+        Identity oid = broker.serviceIdentity().buildIdentity(nested);
 
         // clear cache and retrieve copy of nested object
         broker.clearCache();



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message