basecopy.java

来自「办公自动化项目」· Java 代码 · 共 171 行

JAVA
171
字号
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 Copy table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="Copy"
 */
public abstract class BaseCopy  implements Serializable {

	public static String PROP_MANAGE = "manage";
	public static String PROP_COPYNAME_I_D = "copynameID";
	public static String PROP_COPY_I_D = "copyID";
	public static String PROP_OFFMOVE = "offmove";


	private int hashCode = Integer.MIN_VALUE;

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

	// many to one
	private com.t60.oa.po.OffMove _offmove;
	private com.t60.oa.po.Employee _copynameID;
	private com.t60.oa.po.Manage _manage;


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

	/**
	 * Constructor for primary key
	 */
	public BaseCopy (java.lang.Integer _copyID) {
		this.setCopyID(_copyID);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseCopy (
		java.lang.Integer _copyID,
		com.t60.oa.po.OffMove _offmove,
		com.t60.oa.po.Employee _copynameID,
		com.t60.oa.po.Manage _manage) {

		this.setCopyID(_copyID);
		this.setOffmove(_offmove);
		this.setCopynameID(_copynameID);
		this.setManage(_manage);
		initialize();
	}

	protected void initialize () {}



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

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


	/**
     * @hibernate.property
     *  column=offmove
	 * not-null=true
	 */
	public com.t60.oa.po.OffMove getOffmove () {
		return this._offmove;
	}

	/**
	 * Set the value related to the column: offmove
	 * @param _offmove the offmove value
	 */
	public void setOffmove (com.t60.oa.po.OffMove _offmove) {
		this._offmove = _offmove;
	}


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

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


	/**
     * @hibernate.property
     *  column=manage
	 * not-null=true
	 */
	public com.t60.oa.po.Manage getManage () {
		return this._manage;
	}

	/**
	 * Set the value related to the column: manage
	 * @param _manage the manage value
	 */
	public void setManage (com.t60.oa.po.Manage _manage) {
		this._manage = _manage;
	}


	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.t60.oa.po.base.BaseCopy)) return false;
		else {
			com.t60.oa.po.base.BaseCopy mObj = (com.t60.oa.po.base.BaseCopy) obj;
			if (null == this.getCopyID() || null == mObj.getCopyID()) return false;
			else return (this.getCopyID().equals(mObj.getCopyID()));
		}
	}


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


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

}

⌨️ 快捷键说明

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