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/ejb/org/apache/ojb/ejb ODMGBaseBeanImpl.java
Date Mon, 15 Dec 2003 10:11:58 GMT
arminw      2003/12/15 02:11:58

  Modified:    src/ejb/org/apache/ojb/ejb ODMGBaseBeanImpl.java
  Log:
  fix bug in ejb-examples
  we need to mark object as 'dirty' to
  force an update
  
  Revision  Changes    Path
  1.6       +4 -2      db-ojb/src/ejb/org/apache/ojb/ejb/ODMGBaseBeanImpl.java
  
  Index: ODMGBaseBeanImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/ejb/org/apache/ojb/ejb/ODMGBaseBeanImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ODMGBaseBeanImpl.java	27 Feb 2003 20:46:42 -0000	1.5
  +++ ODMGBaseBeanImpl.java	15 Dec 2003 10:11:58 -0000	1.6
  @@ -60,6 +60,7 @@
   import org.apache.ojb.broker.util.logging.Logger;
   import org.apache.ojb.broker.util.logging.LoggerFactory;
   import org.apache.ojb.odmg.HasBroker;
  +import org.apache.ojb.odmg.TransactionExt;
   import org.apache.ojb.jboss.ODMGFactory;
   import org.odmg.Database;
   import org.odmg.Implementation;
  @@ -126,7 +127,8 @@
            associated with the container */
           try
           {
  -            Transaction tx = odmg.currentTransaction();
  +            TransactionExt tx = (TransactionExt) odmg.currentTransaction();
  +            tx.markDirty(object);
               tx.lock(object, Transaction.WRITE);
           }
           catch (LockNotGrantedException e)
  
  
  

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