Chapter 4 Generating Hibernate Persistent Objects and JSF Pages


Defining computed attributes

Sometimes, you will need to display computed attributes (using a method to compute a value based on the value of other attributes) in the list page.

Usually, you will develop a method in the managed bean and display the result of the method in the page.

To support computed attributes in PowerDesigner, you can:

  1. Define an attribute, and indicate that it is not persistent, and is derived.
  2. Generate and implement a getter.

When generating pages, PowerDesigner will automatically include the derived attributes.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.