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

📄 basedepemp.java

📁 办公自动化项目
💻 JAVA
字号:
package com.t60.oa.po.base;

import java.io.Serializable;


/**
 * This class has been automatically generated by Hibernate Synchronizer. * For more information or documentation, visit The Hibernate Synchronizer page * at http://www.binamics.com/hibernatesync or contact Joe Hudson at joe@binamics.com. * * This is an object that contains data related to the DepEmp table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="DepEmp"
 */
public abstract class BaseDepEmp  implements Serializable {

	public static String PROP_DUTY = "duty";
	public static String PROP_EMP = "emp";
	public static String PROP_DEP = "dep";
	public static String PROP_DEPLEAVE_TIME = "depleaveTime";
	public static String PROP_LEADER = "leader";
	public static String PROP_ID = "id";


	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private boolean _leader;
	private java.lang.String _depleaveTime;
	private java.lang.String _duty;

	// many to one
	private com.t60.oa.po.Department _dep;
	private com.t60.oa.po.Employee _emp;


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

	/**
	 * Constructor for primary key
	 */
	public BaseDepEmp (java.lang.Integer _id) {
		this.setId(_id);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseDepEmp (
		java.lang.Integer _id,
		com.t60.oa.po.Department _dep,
		com.t60.oa.po.Employee _emp) {

		this.setId(_id);
		this.setDep(_dep);
		this.setEmp(_emp);
		initialize();
	}

	protected void initialize () {}



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="deId"
     */
	public java.lang.Integer getId () {
		return _id;
	}

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


	/**
	 * Return the value associated with the column: leader
	 */
	public boolean isLeader () {
		return _leader;
	}

	/**
	 * Set the value related to the column: leader
	 * @param _leader the leader value
	 */
	public void setLeader (boolean _leader) {
		this._leader = _leader;
	}


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

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


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

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


	/**
     * @hibernate.property
     *  column=depId
	 * not-null=true
	 */
	public com.t60.oa.po.Department getDep () {
		return this._dep;
	}

	/**
	 * Set the value related to the column: depId
	 * @param _dep the depId value
	 */
	public void setDep (com.t60.oa.po.Department _dep) {
		this._dep = _dep;
	}


	/**
     * @hibernate.property
     *  column=empId
	 * not-null=true
	 */
	public com.t60.oa.po.Employee getEmp () {
		return this._emp;
	}

	/**
	 * Set the value related to the column: empId
	 * @param _emp the empId value
	 */
	public void setEmp (com.t60.oa.po.Employee _emp) {
		this._emp = _emp;
	}


	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.t60.oa.po.base.BaseDepEmp)) return false;
		else {
			com.t60.oa.po.base.BaseDepEmp mObj = (com.t60.oa.po.base.BaseDepEmp) obj;
			if (null == this.getId() || null == mObj.getId()) return false;
			else return (this.getId().equals(mObj.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 String toString () {		return super.toString();	}

}

⌨️ 快捷键说明

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