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

📄 basensrole.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_role 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_role"
 */

public abstract class BaseNsRole  implements Comparable, Serializable {

	public static String REF = "NsRole";
	public static String PROP_ROLE_REMARK1 = "roleRemark1";
	public static String PROP_ROLE_REMARK4 = "roleRemark4";
	public static String PROP_ROLE_REMARK2 = "roleRemark2";
	public static String PROP_ROLE_USERID = "roleUserid";
	public static String PROP_ROLE_REMARK3 = "roleRemark3";
	public static String PROP_ROLE_ADMIN = "roleAdmin";
	public static String PROP_ROLE_MODERATOR = "roleModerator";
	public static String PROP_ROLE_FORUMID = "roleForumid";
	public static String PROP_ROLE_USER = "roleUser";
	public static String PROP_ID = "id";
	public static String PROP_ROLE_SUPERADMIN = "roleSuperadmin";


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

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

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.lang.String roleUserid;
	private java.lang.Integer roleUser;
	private java.lang.Integer roleModerator;
	private java.lang.Long roleForumid;
	private java.lang.Integer roleAdmin;
	private java.lang.Integer roleSuperadmin;
	private java.lang.Integer roleRemark1;
	private java.lang.Integer roleRemark2;
	private java.lang.Integer roleRemark3;
	private java.lang.Integer roleRemark4;



	/**
	 * 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: role_userID
	 */
	public java.lang.String getRoleUserid () {
		return roleUserid;
	}

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



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

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



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

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



	/**
	 * Return the value associated with the column: role_forumID
	 */
	public java.lang.Long getRoleForumid () {
		return roleForumid;
	}

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



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

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



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

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



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

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



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

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



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

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



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

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





	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.singnet.bean.NsRole)) return false;
		else {
			com.singnet.bean.NsRole nsRole = (com.singnet.bean.NsRole) obj;
			if (null == this.getId() || null == nsRole.getId()) return false;
			else return (this.getId().equals(nsRole.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 + -