Reset created and lastModified at the end of the constructor

for relational nodes to show that the object hasn't been
modified since it was fetched from db.
This commit is contained in:
hns 2001-12-06 22:38:14 +00:00
parent a8fd428530
commit 9da4b1dec9

View file

@ -330,6 +330,11 @@ public final class Node implements INode, Serializable {
newprop.type = IProperty.NODE;
}
}
// again set created and lastmodified. This is because
// lastmodified has been been updated, and we want both values to
// be identical to show that the node hasn't been changed since
// it was first created.
created = lastmodified = System.currentTimeMillis ();
markAs (CLEAN);
}