jpa设置字段默认值

来源:互联网 发布:战略选择矩阵 编辑:程序博客网 时间:2024/04/29 00:10
private Integer clientArticleCount=0;//文章的数量 相当于设置字段默认值@Columnpublic Integer getClientArticleCount() {return clientArticleCount;}public void setClientArticleCount(Integer clientArticleCount) {this.clientArticleCount = clientArticleCount;}

0 0
原创粉丝点击