Managing Persistence for Complex Data Types

When you specify a class as the data type of an attribute, you can control its generation to a CDM or PDM using the Generate table, Value Type and Generate ADT (PDM only) options in the Persistent groupbox on the Detail tab.

In the following example, Customer contains an attribute, address, for which the class Address, has been selected as data type (see Specifying a Classifier as a Data Type or Return Type):



Customer is specified as persistent, and the Generate table option is selected. You can generate the class Address in any of the following ways:
Note: If you specify a multiplicity (see Attribute Properties) for the attribute using a complex data type, when generating: