HOPEX Database Builder (Web) : MEGA Database Builder : The Class Diagram : The attributes of a class
   
The attributes of a class
 
Attribute properties
Types
A class can be described by its attributes. An attribute is a named property of a class.
Attribute properties
To open the properties of an attribute:
*Right-click the attribute and select Properties.
In the Characteristics page, you can specify:
Its Type described by an expression (see "Types").
*Only the specifications of name, type and persistence are taken into account in derivation and generation of tables with HOPEX Database Builder.
The Initial Value of the attribute, assigned when an instance of the class is created.
Whether it is Read Only, that is if its value can be modified once it has been specified.
*For other characteristics related to UML notation, see the HOPEX UML guide.
Types
A datatype is used to group characteristics shared by several attributes.
Any class can be used to type an attribute for example.
Example: Client, Order, Window, Table.
Classes of the “Primitive type” stereotype are created only for typing attributes or parameters. They are fixed.
Examples of primitive types:
String, Integer, Export address, Monetary amount.
*Click the drop-down list to display the list of types.
*The listed types include the classes in the package, used by the package, and in or used by packages of which it is the client.
To define the structure of a type:
1. Place the corresponding class in the same diagram or in another diagram.
2. Display its Properties.
*For more information on the use of primitive types, see “Attribute and Column Types", page 145.