db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r452821 - /db/ojb/trunk/src/test/org/apache/ojb/broker/PolymorphicExtents.java
Date Wed, 04 Oct 2006 10:10:50 GMT
Author: arminw
Date: Wed Oct  4 03:10:49 2006
New Revision: 452821

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

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

Modified: db/ojb/trunk/src/test/org/apache/ojb/broker/PolymorphicExtents.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/test/org/apache/ojb/broker/PolymorphicExtents.java?view=diff&rev=452821&r1=452820&r2=452821
==============================================================================
--- db/ojb/trunk/src/test/org/apache/ojb/broker/PolymorphicExtents.java (original)
+++ db/ojb/trunk/src/test/org/apache/ojb/broker/PolymorphicExtents.java Wed Oct  4 03:10:49
2006
@@ -36,7 +36,7 @@
 		a.setUnit("bottle");
 		ProductGroup tmpPG = new ProductGroup();
 		tmpPG.setId(new Integer(1));
-		Identity pgID = new Identity(tmpPG, broker);
+		Identity pgID = broker.serviceIdentity().buildIdentity(tmpPG);
 		ProductGroupProxy pgProxy = (ProductGroupProxy) broker.createProxy(ProductGroupProxy.class,
pgID);
 		a.setProductGroup(pgProxy);
 		return a;
@@ -140,7 +140,7 @@
         {
             OrderPosition tmp = new OrderPosition();
             tmp.setId(i);
-            Identity oid = new Identity(tmp, broker);
+            Identity oid = broker.serviceIdentity().buildIdentity(tmp);
             OrderPosition pos = (OrderPosition) broker.getObjectByIdentity(oid);
             assertNotNull(pos);
         }



---------------------------------------------------------------------
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