Annotation Type MapKey


@Retention(CLASS) @Target(FIELD) public @interface MapKey
Uses a target attribute as the key of an entity relationship Map.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Selects the target entity attribute used as keys in a relationship Map.
  • Element Details

    • name

      String name
      Selects the target entity attribute used as keys in a relationship Map.
      Returns:
      Java attribute name