Skip Headers

# Fetch Groups and Object-Level Read Queries

Previous

Next

You can use a fetch group with a `ReadObjectQuery` or `ReadAllQuery`. When you execute the query, TopLink retrieves only the attributes in the fetch group. TopLink automatically executes a query to fetch all the attributes excluded from this subset when and if you call a getter method on any one of the excluded attributes.

Note: Currently, fetch groups only provide support for EJB.

For more information, see the following:

- "Fetch Groups"

- "Using Queries With Fetch Groups"