Sybase 7.5 manual Multiplicity, Creating an attribute from the Browser

Models: 7.5

1 288
Download 288 pages 28.98 Kb
Page 61
Image 61

Chapter 2 Building an Object-Oriented Model

Multiplicity

The cardinality of each of an attribute is called the multiplicity.

Cardinality

0..0

0..1

0..*

1..1

1..*

*

Number of instances in relation

None

None or one

None to infinity

One to one

One to infinity

Infinity

You can change the default format of cardinalities from the registry:

HKEY_CURRENT_USER\Software\Sybase\PowerDesigner 7\ModelOptions\Cld

MultiplicityNotation = 1 (0..1) or 2 (0,1)

Creating an attribute

There are three ways to create an attribute:

Create an attribute symbol in the Browser

Add a new attribute to the list of attributes

Create an attribute from a class in a diagram

Creating an attribute from the Browser

ϖTo create an attribute from the Browser:

1 Right-click the Attributes category in the Browser. 2 Select New from the contextual menu.

51

Page 61
Image 61
Sybase 7.5 manual Multiplicity, Creating an attribute from the Browser, To create an attribute from the Browser