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

📄 basensforum.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_forum 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_forum"
 */

public abstract class BaseNsForum  implements Comparable, Serializable {

	public static String REF = "NsForum";
	public static String PROP_PARENT_BOARD = "parentBoard";
	public static String PROP_FORUM_NAME = "forumName";
	public static String PROP_FORUM_CTIME = "forumCtime";
	public static String PROP_FORUM_REPLY_ACCESS = "forumReplyAccess";
	public static String PROP_FORUM_COUNT = "forumCount";
	public static String PROP_FORUM_POST_ACCESS = "forumPostAccess";
	public static String PROP_FORUM_MODERATOR = "forumModerator";
	public static String PROP_FORUM_PERMISS = "forumPermiss";
	public static String PROP_FORUM_VISIT = "forumVisit";
	public static String PROP_FORUM_DESP = "forumDesp";
	public static String PROP_FORUM_STATE = "forumState";
	public static String PROP_FORUM_ORDER = "forumOrder";
	public static String PROP_FORUM_IMG = "forumImg";
	public static String PROP_ID = "id";


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

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

	/**
	 * Constructor for required fields
	 */
	public BaseNsForum (
		java.lang.Long id,
		com.singnet.bean.NsBoard parentBoard,
		java.lang.String forumName,
		java.lang.Long forumCount) {

		this.setId(id);
		this.setParentBoard(parentBoard);
		this.setForumName(forumName);
		this.setForumCount(forumCount);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.lang.String forumName;
	private java.lang.String forumModerator;
	private java.lang.String forumDesp;
	private java.lang.Long forumCount;
	private java.lang.String forumImg;
	private java.util.Date forumCtime;
	private java.lang.String forumPermiss;
	private java.lang.String forumPostAccess;
	private java.lang.String forumReplyAccess;
	private java.lang.Integer forumState;
	private java.lang.Integer forumVisit;
	private java.lang.Integer forumOrder;

	// many to one
	private com.singnet.bean.NsBoard parentBoard;



	/**
	 * 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: forum_name
	 */
	public java.lang.String getForumName () {
		return forumName;
	}

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



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

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



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

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



	/**
	 * Return the value associated with the column: forum_count
	 */
	public java.lang.Long getForumCount () {
		return forumCount;
	}

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



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

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



	/**
	 * Return the value associated with the column: forum_ctime
	 */
	public java.util.Date getForumCtime () {
		return forumCtime;
	}

	/**
	 * Set the value related to the column: forum_ctime
	 * @param forumCtime the forum_ctime value
	 */
	public void setForumCtime (java.util.Date forumCtime) {
		this.forumCtime = forumCtime;
	}



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

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



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

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



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

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



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

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



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

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



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

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



	/**
	 * Return the value associated with the column: forum_pid
	 */
	public com.singnet.bean.NsBoard getParentBoard () {
		return parentBoard;
	}

	/**
	 * Set the value related to the column: forum_pid
	 * @param parentBoard the forum_pid value
	 */
	public void setParentBoard (com.singnet.bean.NsBoard parentBoard) {
		this.parentBoard = parentBoard;
	}





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