注释接口 StaticType


@Retention(SOURCE) @Target(TYPE) @Repeatable(StaticTypes.class) public @interface StaticType
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    A short name for the static type, this name will only be used in mapping system internal, generated source code cannot be affected
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    boolean
     
    How to handle scalar fields that are not decorated by `@Static` explicitly
    If `topLevelName` is not empty, a top level static class will be generated; Otherwise, top level static class will not be generated, and it can only be referenced by other static classes
  • 元素详细资料

    • alias

      String alias
      A short name for the static type, this name will only be used in mapping system internal, generated source code cannot be affected
    • topLevelName

      String topLevelName
      If `topLevelName` is not empty, a top level static class will be generated; Otherwise, top level static class will not be generated, and it can only be referenced by other static classes
      默认值:
      ""
    • autoScalarStrategy

      AutoScalarStrategy autoScalarStrategy
      How to handle scalar fields that are not decorated by `@Static` explicitly
      默认值:
      ALL
    • allOptional

      boolean allOptional
      默认值:
      false