/**
* 创建时间
*/
@Temporal(TemporalType.TIMESTAMP)
@CreationTimestamp
@Column(name = "CREATIONTIME", nullable=false,updatable = false)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date creationTime;
/**
* 修改时间
*/
@Temporal(TemporalType.TIMESTAMP)
@UpdateTimestamp
@Column(name = "MODIFIEDTIME", nullable = true,insertable=false)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date modifiedTime;
![图片描述][1]
Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
ringa_lee