Skip Headers

# Query Keys

Previous

Next

A query key is a schema-independent alias for a database field name. Using a query key, you can refer to a field using a schema-independent alias. In relational projects only, TopLink automatically creates query keys for all mapped attributes. The name of the query key is the name of the class attribute specified in your object model.

You can configure query keys in a class descriptor (see "Configuring Query Keys") or interface descriptor (see "Configuring Interface Query Keys").

You can use query keys in expressions (see "Query Keys and Expressions") and to query variable one-to-one mappings (see "Using Queries on Variable One-to-One Mappings").