⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractuserinfo.java

📁 这是本人在学习T4SH框架时
💻 JAVA
字号:
package com.zxx.tsh.model.userinfo.pojo.basic;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.zxx.tsh.model.userinfo.pojo.UserType;


/**
 * AbstractUserInfo generated by MyEclipse - Hibernate Tools
 */

public abstract class AbstractUserInfo  implements java.io.Serializable {


    // Fields    

     private String userId;
     private UserType userType;
     private String userName;
     private String userPwd;
     private String userRealName;
     private String userSex;
     private Date userCreatedDate;
     private Set operareLogs = new HashSet(0);


    // Constructors

    /** default constructor */
    public AbstractUserInfo() {
    }

	/** minimal constructor */
    public AbstractUserInfo(UserType userType, String userName, String userPwd, String userSex, Date userCreatedDate) {
        this.userType = userType;
        this.userName = userName;
        this.userPwd = userPwd;
        this.userSex = userSex;
        this.userCreatedDate = userCreatedDate;
    }
    
    /** full constructor */
    public AbstractUserInfo(UserType userType, String userName, String userPwd, String userRealName, String userSex, Date userCreatedDate, Set operareLogs) {
        this.userType = userType;
        this.userName = userName;
        this.userPwd = userPwd;
        this.userRealName = userRealName;
        this.userSex = userSex;
        this.userCreatedDate = userCreatedDate;
        this.operareLogs = operareLogs;
    }

   
    // Property accessors

    public String getUserId() {
        return this.userId;
    }
    
    public void setUserId(String userId) {
        this.userId = userId;
    }

    public UserType getUserType() {
        return this.userType;
    }
    
    public void setUserType(UserType userType) {
        this.userType = userType;
    }

    public String getUserName() {
        return this.userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return this.userPwd;
    }
    
    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserRealName() {
        return this.userRealName;
    }
    
    public void setUserRealName(String userRealName) {
        this.userRealName = userRealName;
    }

    public String getUserSex() {
        return this.userSex;
    }
    
    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public Date getUserCreatedDate() {
        return this.userCreatedDate;
    }
    
    public void setUserCreatedDate(Date userCreatedDate) {
        this.userCreatedDate = userCreatedDate;
    }

    public Set getOperareLogs() {
        return this.operareLogs;
    }
    
    public void setOperareLogs(Set operareLogs) {
        this.operareLogs = operareLogs;
    }

	@Override
	public int hashCode() {
		final int PRIME = 31;
		int result = 1;
		result = PRIME * result + ((operareLogs == null) ? 0 : operareLogs.hashCode());
		result = PRIME * result + ((userCreatedDate == null) ? 0 : userCreatedDate.hashCode());
		result = PRIME * result + ((userId == null) ? 0 : userId.hashCode());
		result = PRIME * result + ((userName == null) ? 0 : userName.hashCode());
		result = PRIME * result + ((userPwd == null) ? 0 : userPwd.hashCode());
		result = PRIME * result + ((userRealName == null) ? 0 : userRealName.hashCode());
		result = PRIME * result + ((userSex == null) ? 0 : userSex.hashCode());
		result = PRIME * result + ((userType == null) ? 0 : userType.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final AbstractUserInfo other = (AbstractUserInfo) obj;
		if (operareLogs == null) {
			if (other.operareLogs != null)
				return false;
		} else if (!operareLogs.equals(other.operareLogs))
			return false;
		if (userCreatedDate == null) {
			if (other.userCreatedDate != null)
				return false;
		} else if (!userCreatedDate.equals(other.userCreatedDate))
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals(other.userId))
			return false;
		if (userName == null) {
			if (other.userName != null)
				return false;
		} else if (!userName.equals(other.userName))
			return false;
		if (userPwd == null) {
			if (other.userPwd != null)
				return false;
		} else if (!userPwd.equals(other.userPwd))
			return false;
		if (userRealName == null) {
			if (other.userRealName != null)
				return false;
		} else if (!userRealName.equals(other.userRealName))
			return false;
		if (userSex == null) {
			if (other.userSex != null)
				return false;
		} else if (!userSex.equals(other.userSex))
			return false;
		if (userType == null) {
			if (other.userType != null)
				return false;
		} else if (!userType.equals(other.userType))
			return false;
		return true;
	}

	public String toString() {
		StringBuffer ret = new StringBuffer();
		ret.append("com.zxx.tsh.view.userinfo.vo.UserInfoVO: userId=[");
		ret.append(userId);
		ret.append("] userType=[");
		ret.append(userType);
		ret.append("] userName=[");
		ret.append(userName);
		ret.append("] userType=[");
		ret.append(userRealName);
		ret.append("] userName=[");
		ret.append(userCreatedDate);
		ret.append("]");
		return ret.toString();
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -