Write Policy
Hint
This article is generated by AI translation.
When using the Fluent API, set column write policies to control INSERT/UPDATE behavior.
Disallow updates: excluded from UPDATE SET
@Table
public class Users {
...
@Column(name = "create_time", update = false) // Column excluded from updates
private Date createTime;
...
}
Disallow inserts: excluded from INSERT values
@Table
public class Users {
...
@Column(name = "create_time", insert = false) // Column excluded from inserts
private Date createTime;
...
}