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

📄 baseusermodel.java

📁 ASP SHOP 的代码
💻 JAVA
字号:
package com.publish.shop.security.javabeans.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the UserInfo_table table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="UserInfo_table"
 */

public abstract class BaseUserModel  implements Serializable {

	public static String REF = "UserModel";
	public static String PROP_USER_TYPE_ID = "userTypeId";
	public static String PROP_UPDATE_TIME = "updateTime";
	public static String PROP_LOGIN_NAME = "loginName";
	public static String PROP_USER_PWD = "userPwd";
	public static String PROP_CREATE_TIME = "createTime";
	public static String PROP_USER_LEVEL = "userLevel";
	public static String PROP_USER_ID = "userId";
	public static String PROP_USER_ADDRESS = "userAddress";
	public static String PROP_USER_ZIP = "userZip";
	public static String PROP_USER_EMAIL = "userEmail";
	public static String PROP_USER_STATUS = "userStatus";
	public static String PROP_USER_PHONE = "userPhone";
	public static String PROP_USER_NAME = "userName";
	public static String PROP_USER_SEX = "userSex";


	// constructors
	public BaseUserModel () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseUserModel (java.lang.Integer userId) {
		this.setUserId(userId);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseUserModel (
		java.lang.Integer userId,
		java.lang.String loginName,
		java.lang.String userName,
		java.lang.String userPwd,
		java.lang.String userTypeId,
		java.lang.String userStatus) {

		this.setUserId(userId);
		this.setLoginName(loginName);
		this.setUserName(userName);
		this.setUserPwd(userPwd);
		this.setUserTypeId(userTypeId);
		this.setUserStatus(userStatus);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer userId;

	// fields
	private java.lang.String loginName;
	private java.lang.String userName;
	private java.lang.String userPwd;
	private java.lang.String userTypeId;
	private java.lang.String userSex;
	private java.lang.String userPhone;
	private java.lang.String userEmail;
	private java.lang.String userAddress;
	private java.lang.String userZip;
	private java.lang.String createTime;
	private java.lang.String updateTime;
	private java.lang.String userStatus;
	private java.lang.Integer userLevel;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="increment"
     *  column="userId"
     */
	public java.lang.Integer getUserId () {
		return userId;
	}

	/**
	 * Set the unique identifier of this class
	 * @param userId the new ID
	 */
	public void setUserId (java.lang.Integer userId) {
		this.userId = userId;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: loginName
	 */
	public java.lang.String getLoginName () {
		return loginName;
	}

	/**
	 * Set the value related to the column: loginName
	 * @param loginName the loginName value
	 */
	public void setLoginName (java.lang.String loginName) {
		this.loginName = loginName;
	}



	/**
	 * Return the value associated with the column: userName
	 */
	public java.lang.String getUserName () {
		return userName;
	}

	/**
	 * Set the value related to the column: userName
	 * @param userName the userName value
	 */
	public void setUserName (java.lang.String userName) {
		this.userName = userName;
	}



	/**
	 * Return the value associated with the column: userPwd
	 */
	public java.lang.String getUserPwd () {
		return userPwd;
	}

	/**
	 * Set the value related to the column: userPwd
	 * @param userPwd the userPwd value
	 */
	public void setUserPwd (java.lang.String userPwd) {
		this.userPwd = userPwd;
	}



	/**
	 * Return the value associated with the column: userType
	 */
	public java.lang.String getUserTypeId () {
		return userTypeId;
	}

	/**
	 * Set the value related to the column: userType
	 * @param userTypeId the userType value
	 */
	public void setUserTypeId (java.lang.String userTypeId) {
		this.userTypeId = userTypeId;
	}



	/**
	 * Return the value associated with the column: userSex
	 */
	public java.lang.String getUserSex () {
		return userSex;
	}

	/**
	 * Set the value related to the column: userSex
	 * @param userSex the userSex value
	 */
	public void setUserSex (java.lang.String userSex) {
		this.userSex = userSex;
	}



	/**
	 * Return the value associated with the column: userPhone
	 */
	public java.lang.String getUserPhone () {
		return userPhone;
	}

	/**
	 * Set the value related to the column: userPhone
	 * @param userPhone the userPhone value
	 */
	public void setUserPhone (java.lang.String userPhone) {
		this.userPhone = userPhone;
	}



	/**
	 * Return the value associated with the column: userEmail
	 */
	public java.lang.String getUserEmail () {
		return userEmail;
	}

	/**
	 * Set the value related to the column: userEmail
	 * @param userEmail the userEmail value
	 */
	public void setUserEmail (java.lang.String userEmail) {
		this.userEmail = userEmail;
	}



	/**
	 * Return the value associated with the column: userAddress
	 */
	public java.lang.String getUserAddress () {
		return userAddress;
	}

	/**
	 * Set the value related to the column: userAddress
	 * @param userAddress the userAddress value
	 */
	public void setUserAddress (java.lang.String userAddress) {
		this.userAddress = userAddress;
	}



	/**
	 * Return the value associated with the column: userZip
	 */
	public java.lang.String getUserZip () {
		return userZip;
	}

	/**
	 * Set the value related to the column: userZip
	 * @param userZip the userZip value
	 */
	public void setUserZip (java.lang.String userZip) {
		this.userZip = userZip;
	}



	/**
	 * Return the value associated with the column: createTime
	 */
	public java.lang.String getCreateTime () {
		return createTime;
	}

	/**
	 * Set the value related to the column: createTime
	 * @param createTime the createTime value
	 */
	public void setCreateTime (java.lang.String createTime) {
		this.createTime = createTime;
	}



	/**
	 * Return the value associated with the column: updateTime
	 */
	public java.lang.String getUpdateTime () {
		return updateTime;
	}

	/**
	 * Set the value related to the column: updateTime
	 * @param updateTime the updateTime value
	 */
	public void setUpdateTime (java.lang.String updateTime) {
		this.updateTime = updateTime;
	}



	/**
	 * Return the value associated with the column: userStatus
	 */
	public java.lang.String getUserStatus () {
		return userStatus;
	}

	/**
	 * Set the value related to the column: userStatus
	 * @param userStatus the userStatus value
	 */
	public void setUserStatus (java.lang.String userStatus) {
		this.userStatus = userStatus;
	}



	/**
	 * Return the value associated with the column: userLevel
	 */
	public java.lang.Integer getUserLevel () {
		return userLevel;
	}

	/**
	 * Set the value related to the column: userLevel
	 * @param userLevel the userLevel value
	 */
	public void setUserLevel (java.lang.Integer userLevel) {
		this.userLevel = userLevel;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.publish.shop.security.javabeans.UserModel)) return false;
		else {
			com.publish.shop.security.javabeans.UserModel userModel = (com.publish.shop.security.javabeans.UserModel) obj;
			if (null == this.getUserId() || 0 == userModel.getUserId()) return false;
			else return (this.getUserId().equals(userModel.getUserId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getUserId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getUserId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}

⌨️ 快捷键说明

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