| 构造器和说明 |
|---|
ColumnImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType()
Returns the annotation type of this annotation.
|
java.lang.String |
comment()
数据表字段备注 1.3.0版本支持,也可通过注解实现:com.gitee.sunchenbin.mybatis.actable.annotation.Comment
|
int |
decimalLength()
小数点长度,默认是0
类型默认长度参考:com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant
1.3.0版本支持,类同javax.persistence.Column.scale
|
java.lang.String |
defaultValue()
默认值,默认为null
1.3.0版本支持,也可通过注解实现:com.gitee.sunchenbin.mybatis.actable.annotation.DefaultValue
|
boolean |
isAutoIncrement()
是否自动递增,默认false
也可通过注解实现:com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement
|
boolean |
isKey()
是否是主键,默认false 也可通过注解实现:com.gitee.sunchenbin.mybatis.actable.annotation.IsKey
1.3.0版本支持,类同javax.persistence.Id
|
boolean |
isNull()
是否为可以为null,true是可以,false是不可以,默认为true
也可通过注解实现:com.gitee.sunchenbin.mybatis.actable.annotation.IsNotNull
1.3.0版本支持,类同javax.persistence.Column.nullable
|
int |
length()
字段长度,默认是255
类型默认长度参考:com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant
1.3.0版本支持,类同javax.persistence.Column.length
|
java.lang.String |
name()
字段名 1.3.0版本支持,类同javax.persistence.Column.name
|
MySqlTypeConstant |
type()
字段类型:不填默认使用属性的数据类型进行转换,转换失败的字段不会添加
仅支持com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant中的枚举数据类型
不填默认转换类:com.gitee.sunchenbin.mybatis.actable.command.JavaToMysqlType
1.3.0版本支持,也可通过注解实现:com.gitee.sunchenbin.mybatis.actable.annotation.ColumnType
|
java.lang.String |
value()
字段名 1.4.0版本支持,类同javax.persistence.Column.name
|
public java.lang.String value()
public java.lang.String name()
public MySqlTypeConstant type()
public int length()
public int decimalLength()
public boolean isNull()
public boolean isKey()
public boolean isAutoIncrement()
public java.lang.String defaultValue()
public java.lang.String comment()
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
annotationType 在接口中 java.lang.annotation.AnnotationCopyright © 2024 pig4cloud. All rights reserved.