Chapter 4 Generating Hibernate Persistent Objects and JSF Pages


Defining attribute validation rules and default values

PowerDesigner provides validation and default values for the edit boxes in the Create and Edit pages.

Steps To define validation rules:

  1. Open the attribute property sheet, and click the Standard Checks tab.
  2. You can define minimum value and maximum values to control the value range.
  3. You can define a default value. A string, must be enclosed in quotes. You can also define the Initial value in the Details tab.
  4. You can define a list of values that will be used in a listbox, combo box or radio buttons.

Note: You can set a "list of values" on the Standard Checks tab of an attribute property sheet, and PowerDesigner will generate a combo box that includes the values.

You can also select which control style to use:

 


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