Annotation Interface AnyDiscriminatorValue


Specifies the mapping of a single any-valued discriminator value to its corresponding entity type.

This annotation may be applied:

  • directly to a field or property annotated Any, or
  • indirectly, as a meta-annotation, to a second annotation which is then applied to various fields or properties annotated Any with the same target entity type.
Since:
6.0
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The discriminator value
    The corresponding entity
  • Element Details

    • discriminator

      String discriminator
      The discriminator value
    • entity

      Class<?> entity
      The corresponding entity