January 2012
Intermediate to advanced
406 pages
11h 11m
English
In this recipe, we will see how to set default values for view object attributes. There are a number of places where you can do this, namely:
create() method of the view object row implementation classFor example, for a newly created employee, we will set the employee's hire date to the current date.
This recipe was developed using the HRComponents workspace, which was created in the Overriding remove() to delete associated children entities recipe in Chapter 2, Dealing with Basics: Entity Objects. The HRComponents workspace requires a database connection to the HR schema.
Read now
Unlock full access