javax.jdo.annotations

## Annotation Type FetchGroup

-     @Target(value=TYPE)
       @Retention(value=RUNTIME)
       @Repeatable(value=FetchGroups.class)
      public @interface FetchGroup

  Annotation for the fetch group of a class. Corresponds to the xml element "fetch-group".
  Since:
    2.1
  Version:
    3.2

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `Persistent[]` | `members` Members (fields and properties) of the fetch group.

  - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String[]` | `fetchGroups` Fetch groups to be nested (included) in this fetch group.
    `String` | `name` Name of the fetch group.
    `String` | `postLoad` Whether we should load this group as part of the post load process.

- - ### Element Detail

    - #### members

          public abstract Persistent[] members

      Members (fields and properties) of the fetch group. The members should contain only name and recursionDepth.
      Returns:
        members for the fetch group

  - - #### name

          public abstract String name

      Name of the fetch group.
      Returns:
        the name of the fetch group
      Default:
        ""

  - - #### postLoad

          public abstract String postLoad

      Whether we should load this group as part of the post load process.
      Returns:
        whether we should load this group as part of the post load process.
      Default:
        ""

  - - #### fetchGroups

          public abstract String[] fetchGroups

      Fetch groups to be nested (included) in this fetch group.
      Returns:
        The nested fetch groups in this fetch group
      Default:
        {}

Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.