Databases Reference
In-Depth Information
4. Select the Job atribute as the calculaion is dependent on it.
5. Now click on the OK buton to add the expression for seing a default value for
the Sal atribute.
What just happened?
We have created the default value for the atribute whose value is determined at runime,
using Groovy expression. This means that whenever we create a new record for the EMP table
through EmpEO , If job is MANAGER , the Sal atribute is defaulted to 1000 ; otherwise the Sal
atribute is defaulted to 2000 . We will have a dependency set for the Sal atribute on job ;
this means whenever the value of job changes, the value of the Sal atribute is recalculated.
 
Search WWH ::




Custom Search