Oracle® Application Development Framework Developer's Guide 10g (10.1.3.1.0) Part Number B28967-01 |
|
|
View PDF |
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.
Select the specific getter and setter methods for the relationship.