注释接口 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

  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
     
  • 元素详细资料