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

📄 basecflevel2.java

📁 持久层hibernate技术使用的一个例子
💻 JAVA
字号:
package cn.hope.front.pojo.base;

import java.io.Serializable;


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

public abstract class BaseCFlevel2  implements Serializable {

	public static String REF = "CFlevel2";
	public static String PROP_FLAG = "flag";
	public static String PROP_LAST_RETIME = "lastRetime";
	public static String PROP_T_COUNT = "TCount";
	public static String PROP_T_PICTURE = "TPicture";
	public static String PROP_T_SORTNAME = "TSortname";
	public static String PROP_TODAY_COUNT = "todayCount";


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

	/**
	 * Constructor for primary key
	 */
	public BaseCFlevel2 (java.lang.Integer tSortid) {
		this.setTSortid(tSortid);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseCFlevel2 (
		java.lang.Integer tSortid,
		java.lang.String flag,
		java.lang.Integer tCount,
		java.lang.String tSortname,
		java.lang.Integer todayCount) {

		this.setTSortid(tSortid);
		this.setFlag(flag);
		this.setTCount(tCount);
		this.setTSortname(tSortname);
		this.setTodayCount(todayCount);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.lang.String flag;
	private java.util.Date lastRetime;
	private java.lang.Integer tCount;
	private java.lang.String tPicture;
	private java.lang.String tSortname;
	private java.lang.Integer todayCount;

	// many to one
	private cn.hope.front.pojo.CFlevel1 cFlevel1;

	// collections
	private java.util.Set cFourms;



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

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




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

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



	/**
	 * Return the value associated with the column: last_retime
	 */
	public java.util.Date getLastRetime () {
		return lastRetime;
	}

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



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

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



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

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



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

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



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

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



	/**
	 * Return the value associated with the column: t_sectionid
	 */
	public cn.hope.front.pojo.CFlevel1 getCFlevel1 () {
		return cFlevel1;
	}

	/**
	 * Set the value related to the column: t_sectionid
	 * @param cFlevel1 the t_sectionid value
	 */
	public void setCFlevel1 (cn.hope.front.pojo.CFlevel1 cFlevel1) {
		this.cFlevel1 = cFlevel1;
	}



	/**
	 * Return the value associated with the column: CFourms
	 */
	public java.util.Set getCFourms () {
		return cFourms;
	}

	/**
	 * Set the value related to the column: CFourms
	 * @param cFourms the CFourms value
	 */
	public void setCFourms (java.util.Set cFourms) {
		this.cFourms = cFourms;
	}

	public void addToCFourms (cn.hope.front.pojo.CFourm cFourm) {
		if (null == getCFourms()) setCFourms(new java.util.HashSet());
		getCFourms().add(cFourm);
	}





	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof cn.hope.front.pojo.CFlevel2)) return false;
		else {
			cn.hope.front.pojo.CFlevel2 cFlevel2 = (cn.hope.front.pojo.CFlevel2) obj;
			if (null == this.getTSortid() || null == cFlevel2.getTSortid()) return false;
			else return (this.getTSortid().equals(cFlevel2.getTSortid()));
		}
	}

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


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


}

⌨️ 快捷键说明

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