Product Information > JADE Developer’s Reference > Chapter 14 - Database Reorganization > Adding or Changing Inverse Definitions

Adding or Changing Inverse Definitions

If an inverse definition is added to a reference that has existing instances, a reorganization is required, to ensure that the inverse is valid. If one or both properties have a value, the reorganization process will attempt to establish the inverse. If an object that does not exist is referenced, a warning message is logged and the reference is set to null.

If both properties in the inverse are defined but do not correspond to each other, an error message is logged.

If the maintenance of an array is changed from manual to automatic by the definition of an inverse reference, the resulting reorganization populates the array. As no checking for duplicates is performed, any entries that were added manually are duplicated by the reorganization.

When an inverse reference is added to a property that has one or more existing inverse references, the new inverse reference is populated from the manual property.

When reorganization populates an array, the order in which objects are added is not defined. If the order is important, you must manually sort the array after the reorganization has completed.