注解 对象中字段是否允许修改

来源:互联网 发布:搭建高并发java框架 编辑:程序博客网 时间:2024/06/07 05:18

@Length(max=32)
@Column(length=32, nullable=true, unique=true, updatable=false)
private String username;

username 该字段不允许修改,

updatable=true  设置为true后 字段允许修改。

 

0 0
原创粉丝点击