# Specifying the View Objects to Link and Generating Accessors

While creating a view link in the View Link Wizard or editing a view link in the View Link Editor, use the Association Views page to select source and destination view objects. The relationship between the source and destination is called a view link. The source end is also referred to as the master end; the destination is referred to as the detail end. Once an view link is defined, the source view object can transparently use the view link accessor to traverse the destination side of the view link.

Default view links are created if the Business Components framework detects a relationship between view objects. In a default view link, the source view object references the entity object containing the primary key of a foreign key constraint.

Select Source View Object

> The Source View Object pane displays the view objects in your project in a tree structure. You might need to expand the tree to see the view objects within.

> Select the appropriate source view object. For a default view link this is the view object that references the entity object containing the primary key.

Select Destination View Object

> The Destination View Object pane displays the view objects in your project in a tree structure. You might need to open the tree to see the view objects.

> Select the appropriate destination view object. For a default view link this is the view object that references the entity object containing the foreign key.

Destination View Accessor

> Enter a name for the accessor used to traverse the association. JDeveloper provides a default name when you select the the source and destination view objects. You can accept this name or you can change it. Since view links can only be traversed from source to destination and not from destination to source, there is no accessor for the source view object.

Generate accessor in View

> Select this checkbox to create the accessor in the view object. This allows the entity object to use the relationships defined in the package directly in a code-level accessor.

Generate accessor in Entity

> Select this checkbox to create an accessor to the destination view result set in the entity object.

Accessor name

> You may accept the default name provided or change it in the edit control.