Configures the query to optimize the retrieval of the related objects, the related objects for all the resulting objects will be read in a single query (instead of n queries). Valid values are strings that represent JPQL style navigations to a relationship.

Configures the query to optimize the retrieval of the related objects, the related objects for all the resulting objects will be read in a single query (instead of n queries). Valid values are strings that represent JPQL style navigations to a relationship.

<p>e.g. e.manager.phoneNumbers

<p>e.g. e.manager.phoneNumbers

+

=== Via Annotations ===

<code><pre>

<code><pre>

@Entity

@Entity

Revision as of 15:57, 15 October 2007

EclipseLink allows users the option to optimize their queries using batch and joined reading through the use of a query hint.

Contents

Via Annotations

Batch Reading

Configures the query to optimize the retrieval of the related objects, the related objects for all the resulting objects will be read in a single query (instead of n queries). Valid values are strings that represent JPQL style navigations to a relationship.