Databases Reference
In-Depth Information
Importance of a view link
View links are the components to link two view objects. The relaionship between view
objects can be one-to-one, one-to-many, many-to-one, or many-to-many. This is similar
to the associaion component that we have for the enity object. The only diference is
that the view link is used in the presentaion layer to fetch data if the child and the
master view object are connected through related atributes.
If we have two view objects that have an enity object as a data source, then we can map
our view link based on the associaion between the enity objects. View links based on
associaions are used to traverse master-detail behavior at the enity level.
A view link can also exist without associaion by relaing two atributes from the view object.
The following diagram will explain the view link relaionship between EmpVO and DeptVO :
Time for action - creating a view link between EmpVO and
DeptVO
Now in the following steps, we will see how to create a view link between EmpVO and
DeptVO :
1. Since both the view objects are based on enity objects, we can map the
view link based on the associaion between EmpEO and DeptEO .
2. Right-click on the com.empdirectory.model.view package and select
New View Link .
 
Search WWH ::




Custom Search