In some applications, it is useful to know when a repository item was most recently modified. The following item descriptor contains a last-modified property:

<item-descriptor name="article" last-modified-property="lastActivity">
  <attribute name="updateLastModified" value="true"/>
<table name=ARTICLES type="primary" ...>
  <property name="lastActivity" data-type="timestamp"/>
...
</table>
</item-descriptor>

Three requirements apply:

Given this example, an article item’s lastActivity property is updated with the current time when the item is added or updated.