Annotation Interface DiscriminatorValue


@Documented @Target(TYPE) @Retention(RUNTIME) public @interface DiscriminatorValue
Annotation for subclasses in an inheritance hierarchy that matches a value in a discrimination field in the parent class.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The value that corresponds to entities of the annotated subclass stored in the Datastore Kind belonging to the parent class.
  • Element Details

    • value

      String value
      The value that corresponds to entities of the annotated subclass stored in the Datastore Kind belonging to the parent class.
      Returns:
      the value that corresponds to the annotated subclass.