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/java/org/apache/ojb/odmg ObjectEnvelopeTable.java
Date Fri, 09 Sep 2005 00:34:48 GMT
arminw      2005/09/08 17:34:48

  Modified:    src/java/org/apache/ojb/odmg Tag: OJB_1_0_RELEASE
                        ObjectEnvelopeTable.java
  Log:
  fix bug, only register referenced objects if they are 'new'
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.32.2.22 +2 -2      db-ojb/src/java/org/apache/ojb/odmg/ObjectEnvelopeTable.java
  
  Index: ObjectEnvelopeTable.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/ObjectEnvelopeTable.java,v
  retrieving revision 1.32.2.21
  retrieving revision 1.32.2.22
  diff -u -r1.32.2.21 -r1.32.2.22
  --- ObjectEnvelopeTable.java	6 Sep 2005 11:16:25 -0000	1.32.2.21
  +++ ObjectEnvelopeTable.java	9 Sep 2005 00:34:48 -0000	1.32.2.22
  @@ -589,9 +589,9 @@
                       if(!alreadyPrepared.contains(oid))
                       {
                           ObjectEnvelope depMod = getByIdentity(oid);
  -                        // if the object isn't registered, do so
  +                        // if the object isn't registered and is a new object, register
it
                           // else we have nothing to do
  -                        if(depMod == null)
  +                        if(depMod == null && rt.isNew())
                           {
                               getTransaction().lockAndRegister(rt, Transaction.WRITE, false,
getTransaction().getRegistrationList());
                               depMod = getByIdentity(oid);
  
  
  

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