Skip Headers
Oracle® Application Development Framework Developer's Guide
10g Release 3 (10.1.3)
B25386-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

19.3 Configuring Method Access for Relationship

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:

  1. Select a relationship mapping from a TopLink descriptor in the Structure window.

  2. On the mapping's General tab, select the Use Method Accessing option.

    Figure 19-2 General Tab of TopLink Mapping Editor

    Description of Figure 19-2  follows
    Description of "Figure 19-2 General Tab of TopLink Mapping Editor"

  3. Select the specific getter and setter methods for the relationship.