This is generally done automatically.
DomainObjectContainer provides the
objectChanged() method in order
to mark an object's state as having changed, and therefore requiring an
update to the persistent object store.
In earlier versions of the framework it was necessary to call this method after mutating any the property or collection. This is no longer required because Apache Isis uses bytecode enhancement to automatically call this method. This is done either by Isis itself, or (in the case of the JDO ObjectStore), done by the objectstore enhancement process.
It is not possible to disabled bytecode enhancement if using the JDO Objectstore. While it is possible to disable Isis' bytecode enhancement using
isis.properties file, this is not generally recommended. Only if Isis' bytecode enhancement has been disabled and the JDO ObjectStore is not being used would there be a requirement to call the
objectChanged() method manually.
All edits are reviewed before going live, so feel free to do much more than fix typos or links. If you see a page that could benefit from an entire rewrite, we'd be thrilled to review it. Don't be surprised if we like it so much we ask you for help with other pages :)NOTICE: unless indicated otherwise on the pages in question, all editable content available from apache.org is presumed to be licensed under the Apache License (AL) version 2.0 and hence all submissions to apache.org treated as formal Contributions under the license terms.