Chapter 3 Building Structural Diagrams


Class property sheet Detail tab

The Detail tab contains a Persistent groupbox whose purpose is to defined the persistent generated code of a class during OOM to CDM or PDM generation. For more information on object persistence, see the "Managing object persistence during OOM to PDM generation" section, in the Generating Other Models from an OOM chapter.

The complete list of options on this tab is as follows:

Property Description
Persistent Specifies that the class must be persisted in a generated CDM or PDM. You have to select one of the following options:

  • Generate table - the class is generated as a table.
  • Migrate columns - the class is not generated, and its attributes and associations are migrated to the generated parent or child table.
  • Generate ADT - the class is generated as an abstract data type, a user-defined data type that can encapsulate a range of data values and functions. See "Using abstract data types", in the "Building Physical Diagrams" chapter in the Physical Data Model User's Guide .
  • Value Type – the class is not generated, and its attributes are generated in their referencing types.
Code Specifies the code of the table or entity that will be generated from the current class in a CDM or PDM model. Persistent codes are used for round-trip engineering: the same class always generates the same entity or table with a code compliant with the target DBMS.

Example: to generate a class Purchaser into a table PURCH, type PURCH in the Code box.
Inner to Specifies the name of the class or interface to which the current class belongs as an inner classifier
Association class Specifies the name of the association related to the class to form an association class. The attributes and operations of the current class are used to complement the definition of the association.

For more information on other properties specific to Web services, see the "Detail page of the class" section, in the Working with Web Services chapter.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.