注释接口 Column


@Retention(RUNTIME) @Target(allowedTargets=PROPERTY) @Target(METHOD) public @interface Column
Optional annotation to specify the column name for scalar properties.

If the column name inferred according to the Java/Kotlin property name based on Rule `word1Word2...WordN -> WORD1_WORD2_..._WORDN` is different from the column name in the database, this annotation must be used.

Note: This annotation can not be used to map foreign key. For foreign key, JoinColumn is useful

  • 元素详细资料

    • name

      String name
      默认值:
      ""
    • sqlElementType

      String sqlElementType
      默认值:
      ""