You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by dl...@apache.org on 2001/10/17 18:25:50 UTC
cvs commit: jakarta-turbine-torque/src/java/org/apache/torque/om BaseObject.java
dlr 01/10/17 09:25:50
Modified: src/java/org/apache/torque/om BaseObject.java
Log:
Patch by Byron Foster <bf...@base2.cc>:
Here is a patch that simply changes the initial value for the modified
field in the torque org.apache.torque.om.BaseObject to true.
Revision Changes Path
1.5 +7 -5 jakarta-turbine-torque/src/java/org/apache/torque/om/BaseObject.java
Index: BaseObject.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/om/BaseObject.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -u -r1.4 -r1.5
--- BaseObject.java 2001/09/10 21:14:02 1.4
+++ BaseObject.java 2001/10/17 16:25:50 1.5
@@ -63,7 +63,7 @@
*
* @author <a href="mailto:frank.kim@clearink.com">Frank Y. Kim</a>
* @author <a href="mailto:jmcnally@collab.net">John D. McNally</a>
- * @version $Id: BaseObject.java,v 1.4 2001/09/10 21:14:02 jmcnally Exp $
+ * @version $Id: BaseObject.java,v 1.5 2001/10/17 16:25:50 dlr Exp $
*/
public abstract class BaseObject implements Persistent, Serializable
{
@@ -90,11 +90,13 @@
private ObjectKey primaryKey = null;
/**
- * A flag which can be set to indicate that an object has been
- * modified, since it was last retrieved from the persistence
- * mechanism.
+ * A flag that indicates an object has been modified since it was
+ * last retrieved from the persistence mechanism. This flag is
+ * used to determine if this object should be saved to the
+ * database. We initialize it to true to force new objects to be
+ * saved.
*/
- private boolean modified = false;
+ private boolean modified = true;
/**
* getter for the object primaryKey.
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org