Table of Contents 
Previous Section
 
Derived attributes, since they don't correspond to real values in the database, are read-only; it makes no sense to write a derived value.
To add a new attribute to your entity:
  Add Attribute.
Alternatively, you can use the 
 button on the toolbar. In either case, a new attribute with the name "Attribute" appears in the entity's list of attributes.
For example, you can create an attribute called fullName that combines the firstName and lastName attributes.
Note that this is a contrived example. A safer way to achieve the same end would be to implement a method on your enterprise object-this would ensure that if the firstName or lastName attribute is modified, the derived attribute fullName will immediately reflect the change.
For example, to concatenate the firstName and lastName attributes in Oracle, type the text:
firstName||' '||lastName
The Sybase equivalent is:
firstName+' '+lastName
 
 Figure 29.	  Adding a Derived Attribute 
 

 
Table of Contents 
Next Section