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:
parent
a8fd428530
commit
9da4b1dec9
1 changed files with 9 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue