 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| Ÿ |
More challenging
when trigger updates data in the
|
|
|
same row and the
data is also mapped into an object
|
|
|
| Ÿ |
Example: Annual
salary change automatically triggers
|
|
update of life
insurance premium payroll deduction
|
|
|
|
– |
J2EE app would
need to re-read payroll data after salary
|
|
|
update OR
|
|
|
|
– |
Duplicate
business logic to update field to avoid re-read
|
|
|
|
– |
Saves a DB call
but now business logic in 2 places
|
|