Oracle® Application Development Framework Developer's Guide
10g Release 3 (10.1.3) B25386-01 |
|
Previous |
Next |
By default, TopLink mappings use direct access to access public attributes. Alternatively, you can use getter and setter methods to access object attributes when writing the attributes of the object to the database, or reading the attributes of the object from the database. This is known as method access.
Figure 19-2 shows a TopLink mapped attribute that uses method accessing.
To configure method accessing for a relationship:
Select a relationship mapping from a TopLink descriptor in the Structure window.
On the mapping's General tab, select the Use Method Accessing option.
Figure 19-2 General Tab of TopLink Mapping Editor
Select the specific getter and setter methods for the relationship.