当前位置:网站首页>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
边栏推荐
- My first experience of shadowless cloud computer
- [graduation season · advanced technology Er] young people have dreams, why are they afraid of hesitation
- How to modify data file path in DM database
- Deep understanding of lambda expressions
- 万卷共知,一书一页总关情,TVP读书会带你突围阅读迷障!
- Unit testing classic three questions: what, why, and how?
- Thinkphp Kernel wo system source Commercial Open source multi - user + multi - Customer Service + SMS + email notification
- Embedded-c language-8-character pointer array / large program implementation
- 06 装饰(Decorator)模式
- Use of typescript classes
猜你喜欢

6月书讯 | 9本新书上市,阵容强大,闭眼入!

CorelDRAW Graphics Suite2022免费图形设计软件

LeetCode-归并排序链表

CorelDRAW graphics suite2022 free graphic design software

数学问题(数论)试除法做质数的判断、分解质因数,筛质数

Interview question: do you know the difference between deep copy and shallow copy? What is a reference copy?

Alibaba cloud polkit pkexec local rights lifting vulnerability

CY7C68013A之keil编译代码

万卷共知,一书一页总关情,TVP读书会带你突围阅读迷障!

UNET deployment based on deepstream
随机推荐
Free drawing software recommended - draw io
Thinkphp Kernel wo system source Commercial Open source multi - user + multi - Customer Service + SMS + email notification
Unity particle Foundation
Markdown编辑语法
Lay the foundation for children's programming to become a basic discipline
How to modify data file path in DM database
DC-1靶场搭建及渗透实战详细过程(DC靶场系列)
geotrust ov多域名ssl證書一年兩千一百元包含幾個域名?
Typescript function details
2022-003arts: recursive routine of binary tree
解析少儿编程中的动手搭建教程
Geotrust OV Multi - Domain Domain SSL Certificate rmb2100 per year contains several Domain names?
解决:代理抛出异常错误
CY7C68013A之keil编译代码
Promise all()
Read "the way to clean code" - function names should express their behavior
Leetcode- insert and sort the linked list
数学知识——快速幂的理解及例题
Exposure X8 Standard Version picture post filter PS, LR and other software plug-ins
Markdown edit syntax