db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/odmg ODMGRollbackTest.java
Date Thu, 29 Dec 2005 08:10:38 GMT
arminw      2005/12/29 00:10:37

  Modified:    src/test/org/apache/ojb/odmg Tag: OJB_1_0_RELEASE
                        ODMGRollbackTest.java
  Log:
  fix test case
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.24.2.5  +2 -1      db-ojb/src/test/org/apache/ojb/odmg/ODMGRollbackTest.java
  
  Index: ODMGRollbackTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/odmg/ODMGRollbackTest.java,v
  retrieving revision 1.24.2.4
  retrieving revision 1.24.2.5
  diff -u -r1.24.2.4 -r1.24.2.5
  --- ODMGRollbackTest.java	7 Feb 2005 17:38:22 -0000	1.24.2.4
  +++ ODMGRollbackTest.java	29 Dec 2005 08:10:37 -0000	1.24.2.5
  @@ -633,8 +633,9 @@
   
       protected void deleteAll(Implementation odmg, Class target) throws Exception
       {
  -        Transaction tx = odmg.newTransaction();
  +        TransactionExt tx = (TransactionExt) odmg.newTransaction();
           tx.begin();
  +        tx.setCascadingDelete(target, true);
           OQLQuery query = odmg.newOQLQuery();
           query.create("select allObjects from " + target.getName());
           List list = (List) query.execute();
  
  
  

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