📜  更新 current_timestamp jpa - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:01.751000             🧑  作者: Mango

代码示例1
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "edit_timestamp", 
        updatable = false
        columnDefinition="TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
private Date editTimestamp;