当前位置:网站首页>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
边栏推荐
猜你喜欢

Ten thousand volumes are known to all, and one page of a book is always relevant. TVP reading club will take you through the reading puzzle!

Why can't you remember when reading? Why can't you remember- My technology learning methodology

What methods should service define?

unable to execute xxx. SH: operation not permitted

农业生态领域智能机器人的应用

LeetCode-归并排序链表

Promise all()

C language practice - number guessing game

记录一次Unity 2020.3.31f1的bug

Deep understanding of lambda expressions
随机推荐
Pit encountered in win11 pytorch GPU installation
Precipitate yourself and stay up late to sort out 100 knowledge points of interface testing professional literacy
Vmware安装win10报错:operating system not found
Promise all()
Flag bits in assembly language: CF, PF, AF, ZF, SF, TF, if, DF, of
How to recover deleted data in disk
Binary tree problem solving (1)
VMware installation win10 reports an error: operating system not found
Lm09 Fisher inverse transform inversion mesh strategy
UNET deployment based on deepstream
Use of typescript classes
数学知识(欧拉函数)
6月书讯 | 9本新书上市,阵容强大,闭眼入!
Pytest learning ----- pytest Interface Association framework encapsulation of interface automation testing
Getting started with pytest ----- confitest Application of PY
Typescript function details
Realize the function of data uploading
Several methods of capturing packets under CS framework
MySQL table insert Chinese change? Solution to the problem of No
Three years of experience in Android development interview (I regret that I didn't get n+1, Android bottom development tutorial