Skip to main content

Write Policy

When using the Builder API, set column write policies to control INSERT/UPDATE behavior.

Disallow Updates​

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​

Disallow inserts: excluded from INSERT values
@Table
public class Users {
...
@Column(name = "create_time", insert = false) // Column excluded from inserts
private Date createTime;
...
}