惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
L
LangChain Blog
Y
Y Combinator Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
V
Visual Studio Blog
小众软件
小众软件
月光博客
月光博客
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MongoDB | Blog
MongoDB | Blog
Jina AI
Jina AI
美团技术团队
量子位

博客园 - 乱炖er

CSS/CSS3 Format/Optimize/Minify Tool 在线处理工具 android重复点击问题 macOS下生成pdf报错:No wkhtmltopdf executable found 错误:为 repo 'appstream' 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist Python爬虫'utf-8' codec can't decode byte 0xxx in position 1: invalid start byte的解决方案 fatal: unable to access 'https://github.com/xxx/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream Lombok requires enabled annotation processing: Do you want to enable annotation processors? visual studio code的markdown生成侧边栏目录 SpringBoot2.6+单元测试 IDEA中SpringBoot热部署 Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord android studio右侧Gradle不显示Tasks PyCharm OSError: [Errno 48] Address already in use [Swift]扩展UIColor:实现十六进制颜色字符串与UIColor之间的相互转换 photoshop将png图片里的文字改成其他颜色 python json.dumps 中文编码问题 java.lang.RuntimeException: A TaskDescription's primary color should be opaque item2使用pem文件登陆 腾讯云服务器ssh登陆频繁断开链接的解决方案
SpringBoot @Column
乱炖er · 2022-05-16 · via 博客园 - 乱炖er

@Column的作用是来标识实体类中属性与数据表中字段的对应关系,其代码定义如下

@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Column {
    String name() default "";  // 定义了该属性字段在数据库表中所对应字段的名称
 
    boolean unique() default false;  //表示该字段是否为唯一标识,默认为false
 
    boolean nullable() default true;  //表示该字段是否可以为null值,默认为true
 
    boolean insertable() default true; //表示在使用“INSERT”脚本插入数据时,是否允许插入该字段的值
 
    boolean updatable() default true;  //表示在使用“UPDATE”脚本插入数据时,是否允许更新该字段的值.
 
    String columnDefinition() default ""; //表示创建表时,该字段创建的SQL语句,一般用于通过Entity生成表定义时使用。
 
    String table() default "";  //定义了包含当前字段的表名,缺省值时默认该字段存在于主表下
 
    int length() default 255; // 表示字段的长度,当字段的类型为varchar时,该属性才有效,默认为255个字符
 
    int precision() default 0; //表示数值的总长度
 
    int scale() default 0;  //表示小数点所占的位数
}