How can you achieve this behavior by using the declarat…

The EmployeesVO view object is based on the Employees table and includes a DeptId attribute.
However, DeptId is not really meaningful to the end user and so, for each employee returned by EmployeesVO,
you need to show the correct DepartmentName, which comes from the Departments table and is referenced
by the EmployeesVO DeptId attribute.
How can you achieve this behavior by using the declarative features of ADF Business Components? (Choose
the best answer.)

The EmployeesVO view object is based on the Employees table and includes a DeptId attribute.
However, DeptId is not really meaningful to the end user and so, for each employee returned by EmployeesVO,
you need to show the correct DepartmentName, which comes from the Departments table and is referenced
by the EmployeesVO DeptId attribute.
How can you achieve this behavior by using the declarative features of ADF Business Components? (Choose
the best answer.)

A.
Add a transient attribute to EmployeesVO and set its value to select DepartmentName from
Departments where DeptId = :EmployeesView.DeptId.

B.
Create a database view to join the Departments and Employees tables and base the view object on that
view.

C.
Define that EmployeesVO is also based on the Departments entity object. Then select “Add attribute from
entity” in the EmployeesVO view object and select DepartmentName from the Departments entity object.

D.
For the EmployeesVO view object, select the query and add WHERE Employees. DEPARTMENT_ID =
Departments.DEPARTMENT_ID.

E.
Add a transient attribute called DepartmentName in the view object and, in the ViewRowImpl class,
override the getDepartmentName() accessor to: return (String) getAttributeInternal
(DEPARTMENTNAME);

Explanation:
http://oracle-adf-blog.blogspot.se/2015/05/creating-join-view-object.html



Leave a Reply 0

Your email address will not be published. Required fields are marked *