Module eclipselink

Annotation Interface BatchFetch


@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface BatchFetch
A BatchFetch annotation can be used on any relationship mapping (OneToOne, ManyToOne, OneToMany, ManyToMany, ElementCollection, BasicCollection, BasicMap). It allows the related objects to be batch read in a single query. Batch fetching can also be set at the query level, and it is normally recommended to do so as all queries may not require batching.
Author:
James Sutherland
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Define the default batch fetch size.
    The type of batch-fetch to use.