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

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

	public static String PROP_AUDIT_MAN = "auditMan";
	public static String PROP_APPLE_MAN = "appleMan";
	public static String PROP_REMARK = "remark";
	public static String PROP_VERSION = "version";
	public static String PROP_STATE = "state";
	public static String PROP_APPLE_TIME = "appleTime";
	public static String PROP_STORE_MAN = "storeMan";
	public static String PROP_RECEIVE_MAN = "receiveMan";
	public static String PROP_ID = "id";


	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.util.Date _appleTime;
	private boolean _state;
	private java.lang.String _remark;
	private java.lang.Integer _version;

	// many to one
	private com.t60.oa.po.Employee _auditMan;
	private com.t60.oa.po.Employee _storeMan;
	private com.t60.oa.po.Employee _appleMan;
	private com.t60.oa.po.Employee _receiveMan;

	// collections
	private java.util.Collection _appleStoreSet;


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

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

	/**
	 * Constructor for required fields
	 */
	public BaseOfficeRes (
		java.lang.Integer _id,
		com.t60.oa.po.Employee _auditMan,
		com.t60.oa.po.Employee _storeMan,
		com.t60.oa.po.Employee _appleMan,
		com.t60.oa.po.Employee _receiveMan,
		java.lang.Integer _version) {

		this.setId(_id);
		this.setAuditMan(_auditMan);
		this.setStoreMan(_storeMan);
		this.setAppleMan(_appleMan);
		this.setReceiveMan(_receiveMan);
		this.setVersion(_version);
		initialize();
	}

	protected void initialize () {}



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="id"
     */
	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: appleTime
	 */
	public java.util.Date getAppleTime () {
		return _appleTime;
	}

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


	/**
	 * Return the value associated with the column: state
	 */
	public boolean isState () {
		return _state;
	}

	/**
	 * Set the value related to the column: state
	 * @param _state the state value
	 */
	public void setState (boolean _state) {
		this._state = _state;
	}


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

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


	/**
	 * Return the value associated with the column: version
	 */
	public java.lang.Integer getVersion () {
		return _version;
	}

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


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

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


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

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


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

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


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

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


	/**	 * Return the value associated with the column: appleStoreSet	 */	public java.util.Collection getAppleStoreSet () {
		return this._appleStoreSet;
	}

	/**
	 * Set the value related to the column: appleStoreSet
	 * @param _appleStoreSet the appleStoreSet value
	 */
	public void setAppleStoreSet (java.util.Collection _appleStoreSet) {
		this._appleStoreSet = _appleStoreSet;
	}
	
	public void addToAppleStoreSet (Object obj) {
		if (null == this._appleStoreSet) this._appleStoreSet = new java.util.ArrayList();
		this._appleStoreSet.add(obj);
	}



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