Show TOC

Assertion TemplateLocate this document in the navigation structure

The assertion template is a GTL template used to automatically generate sentences from the role names you specify on the Cardinalities tab of relationship property sheets. To review or edit the template, select Start of the navigation path Tools Next navigation step Model Options Next navigation step Assertion Template End of the navigation path.

The PowerDesigner Generation Template Language (GTL) is used to generate text from the objects, properties, and relationships defined in the PowerDesigner metamodel and in extensions to it.

The GTL code in the template extracts various properties of the relationship object and the entities it connects to generate the assertion statements. The mandatory property and cardinalities are evaluated in each direction in order to generate the appropriate wording around the entity and role names.

You can edit the assertion template as necessary, to change the wording or to reference other properties. To reference extended attributes or other extensions, you must specify the extension file for the template to use in the Assertion Extension list.

A sample extension file, Relationship Assertion with Plural Entity Names, is provided, which provides support for using plural entity names in assertions. For information about attaching this or any other xem to your model, see Extending your Modeling Environment

For detailed information about working with GTL, see Customizing and Extending PowerDesigner > Customizing Generation with GTL .