Skip Headers

Oracle® Application Development Framework Developer's Guide 10g Release 3 (10.1.3) B25386-01 |
| Home | Solution Area | Contents | Index

Previous | Next |

# 3.6 Finding Objects by Primary Key

TopLink provides a predefined finder (`findByPrimaryKey`) that takes a primary key as an `Object`. This finder is defined at runtime – not in the Mapping editor

Example 3-6 Executing a Primary Key Finder

    {
        Employee employee = getEmployeeHome().findByPrimaryKey(primraryKey);
    }