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

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

	public static String PROP_USER_TYPE = "userType";
	public static String PROP_EMP = "emp";
	public static String PROP_ID = "id";


	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.lang.Byte _userType;

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


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

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

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

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

	protected void initialize () {}



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="purId"
     */
	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: userType
	 */
	public java.lang.Byte getUserType () {
		return _userType;
	}

	/**
	 * Set the value related to the column: userType
	 * @param _userType the userType value
	 */
	public void setUserType (java.lang.Byte _userType) {
		this._userType = _userType;
	}


	/**
     * @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.BasePurView)) return false;
		else {
			com.t60.oa.po.base.BasePurView mObj = (com.t60.oa.po.base.BasePurView) 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 + -