注释接口 GeneratedValue


@Retention(RUNTIME) @Target(allowedTargets=PROPERTY) @Target(METHOD) public @interface GeneratedValue
  • 元素详细资料

    • strategy

      GenerationType strategy
      默认值:
      AUTO
    • generatorType

      Class<? extends UserIdGenerator<?>> generatorType
      返回:
      A class implements `org.babyfish.jimmer.sql.metadata.UserIdGenerator`.
      • If this class is manged by IOC framework, the constructors can have any parameters
      • Otherwise, default constructor must be supported
      If this argument is specified, generatorRef() cannot be specified
      默认值:
      org.babyfish.jimmer.sql.meta.UserIdGenerator.None.class
    • generatorRef

      String generatorRef
      返回:
      The name of bean manged by IOC framework(eg, spring). If this argument is specified, generatorType() cannot be specified
      默认值:
      ""
    • sequenceName

      String sequenceName
      默认值:
      ""