dlr         2002/07/03 15:09:31

  Modified:    src/templates/om Peer.vm
  Log:
  Patch by Byron Foster <[EMAIL PROTECTED]>:
  
  "This patch simply sets the modified property of the persistent OM
  object to false after torque performs a doUpdate operation.  This is
  similar in functionality to the current doInsert implementation but
  does not set the new property."
  
  Revision  Changes    Path
  1.33      +3 -0      jakarta-turbine-torque/src/templates/om/Peer.vm
  
  Index: Peer.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/templates/om/Peer.vm,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -u -r1.32 -r1.33
  --- Peer.vm   20 Jun 2002 23:55:14 -0000      1.32
  +++ Peer.vm   3 Jul 2002 22:09:31 -0000       1.33
  @@ -761,6 +761,7 @@
       public static void doUpdate($table.JavaName obj) throws TorqueException
       {
           doUpdate(buildCriteria(obj));
  +        obj.setModified(false);
       }
   
       /**
  @@ -801,7 +802,9 @@
           throws TorqueException
       {
           doUpdate(buildCriteria(obj), con);
  +        obj.setModified(false);
       }
  +
       /**
        * Method to delete.  This method is to be used during a transaction,
        * otherwise use the doDelete($table.JavaName) method.  It will take
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to