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

📄 basensuser.java

📁 一个成熟的论坛
💻 JAVA
字号:
package com.singnet.bean.base;

import java.lang.Comparable;
import java.io.Serializable;


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

public abstract class BaseNsUser  implements Comparable, Serializable {

	public static String REF = "NsUser";
	public static String PROP_USER_GROUP = "userGroup";
	public static String PROP_USER_GROUP_I_D = "userGroupID";
	public static String PROP_USER_ONLINE_TIME = "userOnlineTime";
	public static String PROP_USER_LEVEL = "userLevel";
	public static String PROP_USER_ID = "userId";
	public static String PROP_USER_HEAD = "userHead";
	public static String PROP_USER_LOGIN_NUM = "userLoginNum";
	public static String PROP_USER_COUNT = "userCount";
	public static String PROP_USER_NAME = "userName";
	public static String PROP_ID = "id";
	public static String PROP_USER_IS_REAL = "userIsReal";


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

	/**
	 * Constructor for primary key
	 */
	public BaseNsUser (java.lang.Long id) {
		this.setId(id);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseNsUser (
		java.lang.Long id,
		java.lang.String userId,
		java.lang.Integer userLevel,
		java.lang.String userGroup,
		java.lang.Long userGroupID,
		java.lang.Long userCount,
		java.lang.Integer userIsReal) {

		this.setId(id);
		this.setUserId(userId);
		this.setUserLevel(userLevel);
		this.setUserGroup(userGroup);
		this.setUserGroupID(userGroupID);
		this.setUserCount(userCount);
		this.setUserIsReal(userIsReal);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Long id;

	// fields
	private java.lang.String userId;
	private java.lang.String userName;
	private java.lang.Integer userLevel;
	private java.lang.String userGroup;
	private java.lang.Long userGroupID;
	private java.lang.String userHead;
	private java.lang.Long userCount;
	private java.lang.Integer userOnlineTime;
	private java.lang.Integer userLoginNum;
	private java.lang.Integer userIsReal;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="id"
     */
	public java.lang.Long getId () {
		return id;
	}

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




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

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



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

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



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

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



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

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



	/**
	 * Return the value associated with the column: user_groupid
	 */
	public java.lang.Long getUserGroupID () {
		return userGroupID;
	}

	/**
	 * Set the value related to the column: user_groupid
	 * @param userGroupID the user_groupid value
	 */
	public void setUserGroupID (java.lang.Long userGroupID) {
		this.userGroupID = userGroupID;
	}



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

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



	/**
	 * Return the value associated with the column: user_count
	 */
	public java.lang.Long getUserCount () {
		return userCount;
	}

	/**
	 * Set the value related to the column: user_count
	 * @param userCount the user_count value
	 */
	public void setUserCount (java.lang.Long userCount) {
		this.userCount = userCount;
	}



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

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



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

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



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

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





	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.singnet.bean.NsUser)) return false;
		else {
			com.singnet.bean.NsUser nsUser = (com.singnet.bean.NsUser) obj;
			if (null == this.getId() || null == nsUser.getId()) return false;
			else return (this.getId().equals(nsUser.getId()));
		}
	}

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

	public int compareTo (Object obj) {
		if (obj.hashCode() > hashCode()) return 1;
		else if (obj.hashCode() < hashCode()) return -1;
		else return 0;
	}

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


}

⌨️ 快捷键说明

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