当前位置:网站首页>A new attribute value must be added to the entity entity class in the code, but there is no corresponding column in the database table
A new attribute value must be added to the entity entity class in the code, but there is no corresponding column in the database table
2022-07-02 04:50:00 【Mark59】
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hzgs_execute_result")
public class ExecuteResult extends BaseEntity{
/** * Execution result PK */
@TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id;
/** * Basic file table id */
@TableField(value = "basic_archive_id")
private Long basicArchiveId;
/** * current state */
@TableField(value = "proc_status")
private Integer procStatus;
/** * state */
@TableField(value = "status")
private Integer status;
/** * equity investment id */
@TableField(value = "equity_investment_id")
private Long equityInvestmentId;
/** * The update time is empty, fill in the creation time */
@TableField(exist = false)
private Date time;
}
In this entity class, it is necessary to determine whether there is an update time , If there is no update time, assign the creation time to time, If there is an update time, assign the update time to time.Time Not in the database table .
Yes Time Fields use
@TableField(exist = false)
Note to solve
边栏推荐
- CY7C68013A之keil编译代码
- Application of intelligent robot in agricultural ecology
- Deeply understand the concepts of synchronization and asynchrony, blocking and non blocking, parallel and serial
- 汇编语言中的标志位:CF、PF、AF、ZF、SF、TF、IF、DF、OF
- 二叉樹解題(二)
- geotrust ov多域名ssl證書一年兩千一百元包含幾個域名?
- C language practice - number guessing game
- Getting started with pytest -- description of fixture parameters
- 6月书讯 | 9本新书上市,阵容强大,闭眼入!
- Application d'un robot intelligent dans le domaine de l'agroécologie
猜你喜欢
ansible安装与使用
农业生态领域智能机器人的应用
Unit testing classic three questions: what, why, and how?
How do I interview for a successful software testing position? If you want to get a high salary, you must see the offer
TypeScript函数详解
Typescript function details
Change deepin to Alibaba image source
Practical problem solving ability of steam Education
unable to execute xxx. SH: operation not permitted
面试会问的 Promise.all()
随机推荐
解析少儿编程中的动手搭建教程
6.30年终小结,学生时代结束
CorelDRAW Graphics Suite2022免费图形设计软件
Social media search engine optimization and its importance
[C language] Dynamic Planning --- from entry to standing up
Binary tree problem solving (2)
LeetCode-对链表进行插入排序
Websites that it people often visit
关于Steam 教育的知识整理
Pytoch yolov5 runs bug solution from 0:
Thinkphp內核工單系統源碼商業開源版 多用戶+多客服+短信+郵件通知
農業生態領域智能機器人的應用
AcrelEMS高速公路微电网能效管理平台与智能照明解决方案智慧点亮隧道
cs架构下抓包的几种方法
What are the rules and trading hours of agricultural futures contracts? How much is the handling fee deposit?
Mapping location after kotlin confusion
Idea autoguide package and autodelete package Settings
How muddy is the water in the medical beauty industry with a market scale of 100 billion?
Embedded-c language-9-makefile/ structure / Consortium
Message mechanism -- message processing