本文共 318 字,大约阅读时间需要 1 分钟。
private boolean isDel;public boolean isDel() { return isDel;}public void setDel(boolean isDel) { this.isDel = isDel;}
使用引用类型Boolean就好了,
private Boolean isDel;public Boolean getIsDel() { return isDel;}public void setIsDel(Boolean isDel) { this.isDel = isDel;}
eclipse 配置lombok,注解生成getter,setter,equals,hashCode,toString
转载地址:http://vymhd.baihongyu.com/