toString的优化
作者:互联网
toString的优化
@Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("pmId", getPmId()) .append("pmName", getPmName()) .append("pmoId", getPmoId()) .append("pmpId", getPmpId()) .append("pmCardno", getPmCardno()) .append("pmSex", getPmSex()) .append("pmAge", getPmAge()) .append("pmNation", getPmNation()) .append("pmBirthday", getPmBirthday()) .append("pmEducation", getPmEducation()) .append("pmType", getPmType()) .append("pmJoinDate", getPmJoinDate()) .append("pmFormalDate", getPmFormalDate()) .append("pmWorkPost", getPmWorkPost()) .append("pmPhone", getPmPhone()) .append("pmMaritalStatus", getPmMaritalStatus()) .append("pmVillage", getPmVillage()) .append("pmAddress", getPmAddress()) .append("isDel", getIsDel()) .append("createUser", getCreateUser()) .append("createId", getCreateId()) .append("createDate", getCreateDate()) .append("updateUser", getUpdateUser()) .append("updateId", getUpdateId()) .append("updateDate", getUpdateDate()) .toString(); }
标签:updateUser,MULTI,getPmId,toString,优化,append 来源: https://www.cnblogs.com/zhangzaizz/p/16624636.html