You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ol...@apache.org on 2004/01/05 02:38:48 UTC
cvs commit: db-ojb/src/test/org/apache/ojb/otm OtmExamples.java
olegnitz 2004/01/04 17:38:48
Modified: src/test/org/apache/ojb/otm OtmExamples.java
Log:
Fixed bug in the test discovered but some recent changes
Revision Changes Path
1.17 +1 -2 db-ojb/src/test/org/apache/ojb/otm/OtmExamples.java
Index: OtmExamples.java
===================================================================
RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/otm/OtmExamples.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- OtmExamples.java 29 Oct 2003 07:58:33 -0000 1.16
+++ OtmExamples.java 5 Jan 2004 01:38:48 -0000 1.17
@@ -348,9 +348,8 @@
tx = _kit.getTransaction(_conn);
tx.begin();
article = (Article) _conn.getObjectByIdentity(aOid);
- pg = (ProductGroup) article.getProductGroup();
_conn.deletePersistent(article);
- _conn.deletePersistent(pg);
+ _conn.deletePersistent(article.getProductGroup());
tx.commit();
}
catch (Throwable ex)
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org