Time for action – creating an entity-based view object
We have the entity object for DEPT
table created as DeptEO
. Now it's time for us to create a view object based on this entity object. The view object can be created at the time of creating the entity object, by checking the option to create the view object in the create entity wizard. We had skipped that step so that we can create the view object now, using the following steps:
Right-click on the
com.empdirectory.model.view
package and select the New View Object… option. The creation of the view object can also be done from File | New and selecting View Object under the ADF Business Components section.Enter the object's name as
DeptVO
in the Name box and select an entity object as the data source in the next screen.In the next screen, you will have to select the
DeptEO
as the entity object for the view object. Select the Updateable option to make the entity object updateable from the view object, as shown in the following screenshot:In...