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

📄 basetjournal.java

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

import java.io.Serializable;


/**
 * This is an object that contains data related to the t_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="t_journal"
 */

public abstract class BaseTJournal  implements Serializable {

	public static String REF = "TJournal";
	public static String PROP_FLAG = "flag";
	public static String PROP_TJOU_CHAB = "tjouChab";
	public static String PROP_TJOU_COME = "tjouCome";
	public static String PROP_TJOU_CREA = "tjouCrea";
	public static String PROP_TJOU_DATE = "tjouDate";
	public static String PROP_TJOU_GHAB = "tjouGhab";
	public static String PROP_TJOU_GO = "tjouGo";
	public static String PROP_TJOU_GREA = "tjouGrea";


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

	/**
	 * Constructor for primary key
	 */
	public BaseTJournal (java.lang.Integer tjouId) {
		this.setTjouId(tjouId);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseTJournal (
		java.lang.Integer tjouId,
		java.lang.Integer tjouChab,
		java.util.Date tjouDate,
		java.lang.Integer tjouGhab) {

		this.setTjouId(tjouId);
		this.setTjouChab(tjouChab);
		this.setTjouDate(tjouDate);
		this.setTjouGhab(tjouGhab);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.lang.String flag;
	private java.lang.Integer tjouChab;
	private java.util.Date tjouCome;
	private java.lang.String tjouCrea;
	private java.util.Date tjouDate;
	private java.lang.Integer tjouGhab;
	private java.util.Date tjouGo;
	private byte[] tjouGrea;

	// many to one
	private cn.hope.mana.pojo.CDutycon cDutyconC;
	private cn.hope.mana.pojo.TInfo tInfoMaker;
	private cn.hope.mana.pojo.CDutycon cDutyconG;
	private cn.hope.mana.pojo.TInfo tInfoTeacher;



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

	/**
	 * Set the unique identifier of this class
	 * @param tjouId the new ID
	 */
	public void setTjouId (java.lang.Integer tjouId) {
		this.tjouId = tjouId;
		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: tjou_chab
	 */
	public java.lang.Integer getTjouChab () {
		return tjouChab;
	}

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



	/**
	 * Return the value associated with the column: tjou_come
	 */
	public java.util.Date getTjouCome () {
		return tjouCome;
	}

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



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

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



	/**
	 * Return the value associated with the column: tjou_date
	 */
	public java.util.Date getTjouDate () {
		return tjouDate;
	}

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



	/**
	 * Return the value associated with the column: tjou_ghab
	 */
	public java.lang.Integer getTjouGhab () {
		return tjouGhab;
	}

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



	/**
	 * Return the value associated with the column: tjou_go
	 */
	public java.util.Date getTjouGo () {
		return tjouGo;
	}

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



	/**
	 * Return the value associated with the column: tjou_grea
	 */
	public byte[] getTjouGrea () {
		return tjouGrea;
	}

	/**
	 * Set the value related to the column: tjou_grea
	 * @param tjouGrea the tjou_grea value
	 */
	public void setTjouGrea (byte[] tjouGrea) {
		this.tjouGrea = tjouGrea;
	}



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

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



	/**
	 * Return the value associated with the column: t_maker
	 */
	public cn.hope.mana.pojo.TInfo getTInfoMaker () {
		return tInfoMaker;
	}

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



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

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



	/**
	 * Return the value associated with the column: teacher
	 */
	public cn.hope.mana.pojo.TInfo getTInfoTeacher () {
		return tInfoTeacher;
	}

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





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

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


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


}

⌨️ 快捷键说明

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