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

📄 basesjournal.java

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

import java.io.Serializable;


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

public abstract class BaseSJournal  implements Serializable {

	public static String REF = "SJournal";
	public static String PROP_FLAG = "flag";
	public static String PROP_SJOU_CHAB = "sjouChab";
	public static String PROP_SJOU_COME = "sjouCome";
	public static String PROP_SJOU_CREA = "sjouCrea";
	public static String PROP_SJOU_DATE = "sjouDate";
	public static String PROP_SJOU_GHAB = "sjouGhab";
	public static String PROP_SJOU_GO = "sjouGo";
	public static String PROP_SJOU_GREA = "sjouGrea";


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

	/**
	 * Constructor for primary key
	 */
	public BaseSJournal (java.lang.Integer sjouId) {
		this.setSjouId(sjouId);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseSJournal (
		java.lang.Integer sjouId,
		java.lang.Integer sjouChab,
		java.util.Date sjouDate,
		java.lang.Integer sjouGhab) {

		this.setSjouId(sjouId);
		this.setSjouChab(sjouChab);
		this.setSjouDate(sjouDate);
		this.setSjouGhab(sjouGhab);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.lang.String flag;
	private java.lang.Integer sjouChab;
	private java.util.Date sjouCome;
	private java.lang.String sjouCrea;
	private java.util.Date sjouDate;
	private java.lang.Integer sjouGhab;
	private java.util.Date sjouGo;
	private java.lang.String sjouGrea;

	// many to one
	private cn.hope.mana.pojo.CDutycon cDutyconC;
	private cn.hope.mana.pojo.Student student;
	private cn.hope.mana.pojo.CDutycon cDutyconG;
	private cn.hope.mana.pojo.TInfo tInfo;



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

	/**
	 * Set the unique identifier of this class
	 * @param sjouId the new ID
	 */
	public void setSjouId (java.lang.Integer sjouId) {
		this.sjouId = sjouId;
		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: sjou_chab
	 */
	public java.lang.Integer getSjouChab () {
		return sjouChab;
	}

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



	/**
	 * Return the value associated with the column: sjou_come
	 */
	public java.util.Date getSjouCome () {
		return sjouCome;
	}

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



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

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



	/**
	 * Return the value associated with the column: sjou_date
	 */
	public java.util.Date getSjouDate () {
		return sjouDate;
	}

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



	/**
	 * Return the value associated with the column: sjou_ghab
	 */
	public java.lang.Integer getSjouGhab () {
		return sjouGhab;
	}

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



	/**
	 * Return the value associated with the column: sjou_go
	 */
	public java.util.Date getSjouGo () {
		return sjouGo;
	}

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



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

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



	/**
	 * Return the value associated with the column: sjou_cdis
	 */
	public cn.hope.mana.pojo.CDutycon getCDutyconC () {
		return cDutyconC;
	}

	/**
	 * Set the value related to the column: sjou_cdis
	 * @param cDutyconC the sjou_cdis value
	 */
	public void setCDutyconC (cn.hope.mana.pojo.CDutycon cDutyconC) {
		this.cDutyconC = cDutyconC;
	}



	/**
	 * Return the value associated with the column: s_username
	 */
	public cn.hope.mana.pojo.Student getStudent () {
		return student;
	}

	/**
	 * Set the value related to the column: s_username
	 * @param student the s_username value
	 */
	public void setStudent (cn.hope.mana.pojo.Student student) {
		this.student = student;
	}



	/**
	 * Return the value associated with the column: sjou_gdis
	 */
	public cn.hope.mana.pojo.CDutycon getCDutyconG () {
		return cDutyconG;
	}

	/**
	 * Set the value related to the column: sjou_gdis
	 * @param cDutyconG the sjou_gdis value
	 */
	public void setCDutyconG (cn.hope.mana.pojo.CDutycon cDutyconG) {
		this.cDutyconG = cDutyconG;
	}



	/**
	 * Return the value associated with the column: t_id
	 */
	public cn.hope.mana.pojo.TInfo getTInfo () {
		return tInfo;
	}

	/**
	 * Set the value related to the column: t_id
	 * @param tInfo the t_id value
	 */
	public void setTInfo (cn.hope.mana.pojo.TInfo tInfo) {
		this.tInfo = tInfo;
	}





	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof cn.hope.mana.pojo.SJournal)) return false;
		else {
			cn.hope.mana.pojo.SJournal sJournal = (cn.hope.mana.pojo.SJournal) obj;
			if (null == this.getSjouId() || null == sJournal.getSjouId()) return false;
			else return (this.getSjouId().equals(sJournal.getSjouId()));
		}
	}

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


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


}

⌨️ 快捷键说明

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