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

📄 basedepartment.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 Department table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="Department"
 */
public abstract class BaseDepartment  implements Serializable {

	public static String PROP_CX_TIME = "cxTime";
	public static String PROP_DEP_DESC = "depDesc";
	public static String PROP_DEP_NAME = "depName";
	public static String PROP_ID = "id";


	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.lang.String _depDesc;
	private java.lang.String _cxTime;
	private java.lang.String _depName;

	// collections
	private java.util.Collection _floadpurviewSet;
	private java.util.Collection _depEmpSet;


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

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

	/**
	 * Constructor for required fields
	 */
	public BaseDepartment (
		java.lang.String _id,
		java.lang.String _depName) {

		this.setId(_id);
		this.setDepName(_depName);
		initialize();
	}

	protected void initialize () {}



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

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


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

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


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

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


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

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


	/**	 * Return the value associated with the column: floadpurviewSet	 */	public java.util.Collection getFloadpurviewSet () {
		return this._floadpurviewSet;
	}

	/**
	 * Set the value related to the column: floadpurviewSet
	 * @param _floadpurviewSet the floadpurviewSet value
	 */
	public void setFloadpurviewSet (java.util.Collection _floadpurviewSet) {
		this._floadpurviewSet = _floadpurviewSet;
	}
	
	public void addToFloadpurviewSet (Object obj) {
		if (null == this._floadpurviewSet) this._floadpurviewSet = new java.util.ArrayList();
		this._floadpurviewSet.add(obj);
	}



	/**	 * Return the value associated with the column: depEmpSet	 */	public java.util.Collection getDepEmpSet () {
		return this._depEmpSet;
	}

	/**
	 * Set the value related to the column: depEmpSet
	 * @param _depEmpSet the depEmpSet value
	 */
	public void setDepEmpSet (java.util.Collection _depEmpSet) {
		this._depEmpSet = _depEmpSet;
	}
	
	public void addToDepEmpSet (Object obj) {
		if (null == this._depEmpSet) this._depEmpSet = new java.util.ArrayList();
		this._depEmpSet.add(obj);
	}



	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.t60.oa.po.base.BaseDepartment)) return false;
		else {
			com.t60.oa.po.base.BaseDepartment mObj = (com.t60.oa.po.base.BaseDepartment) 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 + -