Annotation Type Case


@Documented
@Retention(RUNTIME)
@Target({})
public @interface Case
The annotation that conditional mapping definition for TypeDiscriminator.
Author:
Clinton Begin
See Also:
TypeDiscriminator, Result, Arg, Results, ConstructorArgs
  • Required Element Summary

    Required Elements
    Modifier and Type Required Element Description
    Class<?> type
    Return the object type that create a object using this mapping.
    String value
    Return the condition value to apply this mapping.
  • Optional Element Summary

    Optional Elements
    Modifier and Type Optional Element Description
    Arg[] constructArgs
    Return mapping definitions for constructor.
    Result[] results
    Return mapping definitions for property.
  • Element Details

    • value

      String value
      Return the condition value to apply this mapping.
      Returns:
      the condition value
    • type

      Class<?> type
      Return the object type that create a object using this mapping.
      Returns:
      the object type
    • results

      Result[] results
      Return mapping definitions for property.
      Returns:
      mapping definitions for property
      Default:
      {}
    • constructArgs

      Arg[] constructArgs
      Return mapping definitions for constructor.
      Returns:
      mapping definitions for constructor
      Default:
      {}