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

📄 basensusergroup.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_group 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_group"
 */

public abstract class BaseNsUserGroup extends com.singnet.bean.NsGroup  implements Comparable, Serializable {

	public static String REF = "NsUserGroup";
	public static String PROP_GROUP_MAX = "groupMax";
	public static String PROP_ID = "id";
	public static String PROP_GROUP_DEFAULT = "groupDefault";
	public static String PROP_GROUP_MIN = "groupMin";


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

	/**
	 * Constructor for primary key
	 */
	public BaseNsUserGroup (java.lang.Long id) {
		super(id);
	}

	/**
	 * Constructor for required fields
	 */
	public BaseNsUserGroup (
		java.lang.Long id,
		java.lang.String groupName) {

		super (
			id,
			groupName);
	}



	private int hashCode = Integer.MIN_VALUE;


	// fields
	private java.lang.Integer groupDefault;
	private java.lang.Integer groupMin;
	private java.lang.Integer groupMax;






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

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



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

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



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

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





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