Show TOC

 The Mapping AssistantLocate this document in the navigation structure

Purpose

The Mapping Assistant is a component of the Class Builder that allows you to locate persistent object attributes in a database. The Mapping Assistant is used to assign persistent classes to database tables or structures and persistent attributes to fields of these tables or structures. The persistence mapping is used to generate dependent code passages in the class of the relevant class actor.

Note

For each object there is a status description (an entry in one or more tables in the database). The persistence service of the Object Services uses this information when instantiating existing persistent objects and when saving their status after changes. At the end of the transaction, the persistent status is stored as the new status description.

Prerequisites

The database tables and structures needed to map persistence already exist.

Features
  • Assigning the persistent attributes in the Class Builder based on the type information in the database table.
    Note

    You only need to define which field of the database table should be mapped to which attribute of the persistent class.

  • Generating database access methods (GET and SET methods) for value attributes, key fields and reference attributes.
  • Assigning GUIDs for identifying objects.
  • Generating auxiliary classes, the class actor class (CA class) and their superclass (CB class) for each application class (CL class). These two classes are needed for managing persistent objects using Object Services.
  • Subsequent processing of attributes and their assignments.

See also:

Structure of the Main Screen

Creating Persistent Classes

Defining Persistence Mapping