content: package com.vua.upms.dao.model;
  
  import java.io.Serializable;
  
  public class UpmsUser implements Serializable {
      /**
       * 编号
       *
       * @mbggenerated
       */
      private Integer userId;
  
      /**
       * 帐号
       *
       * @mbggenerated
       */
      private String username;
  
      /**
       * 密码MD5(密码+盐)
       *
       * @mbggenerated
       */
      private String password;
  
      /**
       * 盐
       *
       * @mbggenerated
       */
      private String salt;
  
      /**
       * 姓名
       *
       * @mbggenerated
       */
      private String realname;
  
      /**
       * 头像
       *
       * @mbggenerated
       */
      private String avatar;
  
      /**
       * 电话
       *
       * @mbggenerated
       */
      private String phone;
  
      /**
       * 邮箱
       *
       * @mbggenerated
       */
      private String email;
  
      /**
       * 性别
       *
       * @mbggenerated
       */
      private Byte sex;
  
      /**
       * 状态(0:正常,1:锁定)
       *
       * @mbggenerated
       */
      private Byte locked;
  
      /**
       * 创建时间
       *
       * @mbggenerated
       */
      private Long ctime;
  
      private static final long serialVersionUID = 1L;
  
      public Integer getUserId() {
          return userId;
      }
  
      public void setUserId(Integer userId) {
          this.userId = userId;
      }
  
      public String getUsername() {
          return username;
      }
  
      public void setUsername(String username) {
          this.username = username;
      }
  
      public String getPassword() {
          return password;
      }
  
      public void setPassword(String password) {
          this.password = password;
      }
  
      public String getSalt() {
          return salt;
      }
  
      public void setSalt(String salt) {
          this.salt = salt;
      }
  
      public String getRealname() {
          return realname;
      }
  
      public void setRealname(String realname) {
          this.realname = realname;
      }
  
      public String getAvatar() {
          return avatar;
      }
  
      public void setAvatar(String avatar) {
          this.avatar = avatar;
      }
  
      public String getPhone() {
          return phone;
      }
  
      public void setPhone(String phone) {
          this.phone = phone;
      }
  
      public String getEmail() {
          return email;
      }
  
      public void setEmail(String email) {
          this.email = email;
      }
  
      public Byte getSex() {
          return sex;
      }
  
      public void setSex(Byte sex) {
          this.sex = sex;
      }
  
      public Byte getLocked() {
          return locked;
      }
  
      public void setLocked(Byte locked) {
          this.locked = locked;
      }
  
      public Long getCtime() {
          return ctime;
      }
  
      public void setCtime(Long ctime) {
          this.ctime = ctime;
      }
  
      @Override
      public String toString() {
          StringBuilder sb = new StringBuilder();
          sb.append(getClass().getSimpleName());
          sb.append(" [");
          sb.append("Hash = ").append(hashCode());
          sb.append(", userId=").append(userId);
          sb.append(", username=").append(username);
          sb.append(", password=").append(password);
          sb.append(", salt=").append(salt);
          sb.append(", realname=").append(realname);
          sb.append(", avatar=").append(avatar);
          sb.append(", phone=").append(phone);
          sb.append(", email=").append(email);
          sb.append(", sex=").append(sex);
          sb.append(", locked=").append(locked);
          sb.append(", ctime=").append(ctime);
          sb.append("]");
          return sb.toString();
      }
  
      @Override
      public boolean equals(Object that) {
          if (this == that) {
              return true;
          }
          if (that == null) {
              return false;
          }
          if (getClass() != that.getClass()) {
              return false;
          }
          UpmsUser other = (UpmsUser) that;
          return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
              && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
              && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
              && (this.getSalt() == null ? other.getSalt() == null : this.getSalt().equals(other.getSalt()))
              && (this.getRealname() == null ? other.getRealname() == null : this.getRealname().equals(other.getRealname()))
              && (this.getAvatar() == null ? other.getAvatar() == null : this.getAvatar().equals(other.getAvatar()))
              && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
              && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
              && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
              && (this.getLocked() == null ? other.getLocked() == null : this.getLocked().equals(other.getLocked()))
              && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()));
      }
  
      @Override
      public int hashCode() {
          final int prime = 31;
          int result = 1;
          result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
          result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
          result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
          result = prime * result + ((getSalt() == null) ? 0 : getSalt().hashCode());
          result = prime * result + ((getRealname() == null) ? 0 : getRealname().hashCode());
          result = prime * result + ((getAvatar() == null) ? 0 : getAvatar().hashCode());
          result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
          result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
          result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
          result = prime * result + ((getLocked() == null) ? 0 : getLocked().hashCode());
          result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
          return result;
      }
  }