数据库字段名: ID_ 主键, TYPE
实体写法:
@TableId(type = IdType.UUID,value = "ID_") private String id; /** * */ @Column(length = 255, nullable = true) @TableField(value = "TYPE_") private String type;
文章展示了如何在Java中使用@TableId和@TableField注解来定义数据库表的主键ID_和字段TYPE_,其中ID_使用UUID类型,TYPE_允许为空。
数据库字段名: ID_ 主键, TYPE
实体写法:
@TableId(type = IdType.UUID,value = "ID_") private String id; /** * */ @Column(length = 255, nullable = true) @TableField(value = "TYPE_") private String type;
3589
1539
413

被折叠的 条评论
为什么被折叠?