Issues and Side Effects
The issues and side effects relating to assignments are as follows.
-
If an assignment is made to an entity that represents a property of a persistent object, the application must be in transaction state. If the application is not in transaction state, an exception is raised.
-
If an assignment is made to a property that is the manual reference of an automatic relationship, the inverse property is updated automatically.
-
You cannot assign to the automatic reference of an automatic relationship.
-
If an assignment is made to a property that is the key of a collection, the object is automatically removed from the collection at the old key value and added again at the new key value.
JADE aborts the current transaction if it detects an error during an automatic update (for example, updating an inverse reference or a key).