Hello,
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.
Thanks,
Byron
? maven.log
? patch.txt
Index: src/templates/om/Peer.vm
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-torque/src/templates/om/Peer.vm,v
retrieving revision 1.31
diff -u -r1.31 Peer.vm
--- src/templates/om/Peer.vm 31 May 2002 20:08:12 -0000 1.31
+++ src/templates/om/Peer.vm 5 Jun 2002 22:40:58 -0000
@@ -752,6 +752,7 @@
public static void doUpdate($table.JavaName obj) throws TorqueException
{
doUpdate(buildCriteria(obj));
+ obj.setModified(false);
}
/**
@@ -792,6 +793,7 @@
throws TorqueException
{
doUpdate(buildCriteria(obj), con);
+ obj.setModified(false);
}
/**
* Method to delete. This method is to be used during a transaction,
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>