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

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

	public static String PROP_CONTEXT = "Context";
	public static String PROP_ACCESSORIES = "Accessories";
	public static String PROP_EDIT_DATE = "EditDate";
	public static String PROP_DOUCUMENT_FOLDER = "DoucumentFolder";
	public static String PROP_EDITE = "Edite";
	public static String PROP_ID = "Id";
	public static String PROP_NEWLY = "Newly";


	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.util.Date _editDate;
	private java.lang.String _accessories;
	private boolean _newly;

	// many to one
	private com.t60.oa.po.Employee _edite;
	private com.t60.oa.po.DoucumentFolder _doucumentFolder;


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

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

	/**
	 * Constructor for required fields
	 */
	public BaseDoucumentEdition (
		java.lang.Integer _id,
		com.t60.oa.po.Employee _edite,
		com.t60.oa.po.DoucumentFolder _doucumentFolder) {

		this.setId(_id);
		this.setEdite(_edite);
		this.setDoucumentFolder(_doucumentFolder);
		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: editDate
	 */
	public java.util.Date getEditDate () {
		return _editDate;
	}

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


	/**
	 * Return the value associated with the column: accessories
	 */
	public java.lang.String getAccessories () {
		return _accessories;
	}

	/**
	 * Set the value related to the column: accessories
	 * @param _accessories the accessories value
	 */
	public void setAccessories (java.lang.String _accessories) {
		this._accessories = _accessories;
	}
    /**
	 * Return the value associated with the column: newly
	 */
	public boolean isNewly () {
		return _newly;
	}

	/**
	 * Set the value related to the column: newly
	 * @param _newly the newly value
	 */
	public void setNewly (boolean _newly) {
		this._newly = _newly;
	}


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

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


	/**
     * @hibernate.property
     *  column=doucumentFolder
	 * not-null=true
	 */
	public com.t60.oa.po.DoucumentFolder getDoucumentFolder () {
		return this._doucumentFolder;
	}

	/**
	 * Set the value related to the column: doucumentFolder
	 * @param _doucumentFolder the doucumentFolder value
	 */
	public void setDoucumentFolder (com.t60.oa.po.DoucumentFolder _doucumentFolder) {
		this._doucumentFolder = _doucumentFolder;
	}


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