MySQL NDB Cluster API 开发人员指南 / 第 4 章 MySQL NDB Cluster Connector for Java / 4.3 ClusterJ API 参考 / 4.3.2 com.mysql.clusterj.注解 /
4.3.2.1 Column
Annotation for a column in the database.
@Target(value={java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD}) @Retention(value=java.lang.annotation.RetentionPolicy.RUNTIME) public @interface Column {public String name ;
public String allowsNull ;
public String defaultValue ;
}
Whether the column allows null values to be inserted. This overrides the database definition and requires that the application provide non-null values for the database column.
Table 4.77 allowsNull
Parameter | Description |
---|---|
return | whether the column allows null values to be inserted |
Default value for this column.