当前位置:网站首页>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
边栏推荐
- Mouse events in JS
- Cultivate primary and secondary school students' love for educational robots
- LM09丨费雪逆变换反转网格策略
- ThinkPHP kernel work order system source code commercial open source version multi user + multi customer service + SMS + email notification
- 6.30年终小结,学生时代结束
- Oracle stored procedure and job task setting
- Its appearance makes competitors tremble. Interpretation of Sony vision-s 02 products
- 【毕业季·进击的技术er】年少有梦,何惧彷徨
- Mysql表insert中文变?号的问题解决办法
- idea自动导包和自动删包设置
猜你喜欢

Markdown edit syntax

ThinkPHP kernel work order system source code commercial open source version multi user + multi customer service + SMS + email notification

Mapping location after kotlin confusion

Unity particle Foundation

Rhcsa --- work on the fourth day
![[C language] Dynamic Planning --- from entry to standing up](/img/7e/29482c8f3970bb1a40240e975ef97f.png)
[C language] Dynamic Planning --- from entry to standing up

面试会问的 Promise.all()

Mysql表insert中文变?号的问题解决办法

Starting from the classification of database, I understand the map database

June book news | 9 new books are listed, with a strong lineup and eyes closed!
随机推荐
My first experience of shadowless cloud computer
Design and implementation of general interface open platform - (44) log processing of API services
数学知识——快速幂的理解及例题
ansible安装与使用
Several methods of capturing packets under CS framework
二叉树解题(二)
Knowledge arrangement about steam Education
Precipitate yourself and stay up late to sort out 100 knowledge points of interface testing professional literacy
MySQL table insert Chinese change? Solution to the problem of No
Pytoch yolov5 runs bug solution from 0:
Geotrust OV Multi - Domain Domain SSL Certificate rmb2100 per year contains several Domain names?
Orthogonal test method and function diagram method for test case design
Markdown edit syntax
CorelDRAW graphics suite2022 free graphic design software
win10 磁盘管理 压缩卷 无法启动问题
How to recover deleted data in disk
Its appearance makes competitors tremble. Interpretation of Sony vision-s 02 products
ThinkPHP kernel work order system source code commercial open source version multi user + multi customer service + SMS + email notification
win11安装pytorch-gpu遇到的坑
geotrust ov多域名ssl证书一年两千一百元包含几个域名?