Annotation Type BatchFetch


@Target({METHOD,PARAMETER,FIELD,TYPE})
@Retention(RUNTIME)
public @interface BatchFetch
If FetchStrategy.SELECT is used on a property, this annotation configures the default batching. Beware that if multiple properties of an entity view use FetchStrategy.SELECT, they will only be loaded together in one batch if the batch sizes match. The batch fetch annotation can also be applied on the entity view class level which makes it's value the default for all properties.
Since:
1.2.0
Author:
Christian Beikov
  • Required Element Summary

    Required Elements 
    Modifier and Type Required Element Description
    int size
    The size of the batch.
  • Element Details

    • size

      int size
      The size of the batch.
      Returns:
      The batch size