Databases Reference
In-Depth Information
Have a go hero - set some default values for other attributes
We have now learned to set the default atribute using Groovy expressions. We will perform
the following exercises to get familiar with the language:
1. Set the default value for Job to CONTRACTOR when the value of Empno is greater
than 100 in EmpEO .
2. The Loc atribute for the DeptEO object will default to CHICAGO every ime.
Validation execution
Validaion execuion is a secion in atribute validaion to set the execuion rule. This is
similar to the execuion rule that we had set for enity-level validaion. The validaion for
the atribute is executed only if the condiion added to the expression editor is saisied.
For example, we can have a compare validaion set on the Sal atribute against 1000,
say 9 , and set the validaion execuion condiion as Job == 'MANAGER' . This means
the compare validaion is executed only if the Job atribute is equal to MANAGER .
The validaion execuion secion for enity-level
validaion will include a triggering atribute secion
that is not available in atribute validaion.
 
Search WWH ::




Custom Search