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

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

	public static String PROP_UNIT = "unit";
	public static String PROP_STORE_TYPE = "storeType";
	public static String PROP_APPLE_NUM = "appleNum";
	public static String PROP_OFFICE_RES = "officeRes";
	public static String PROP_ACTUA_NUM = "actuaNum";
	public static String PROP_STORE_NAME = "storeName";
	public static String PROP_ID = "id";


	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.lang.Integer _appleNum;
	private java.lang.String _unit;
	private java.lang.String _storeType;
	private java.lang.String _storeName;
	private java.lang.Integer _actuaNum;

	// many to one
	private com.t60.oa.po.OfficeRes _officeRes;


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

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

	/**
	 * Constructor for required fields
	 */
	public BaseAppleStore (
		java.lang.Integer _id,
		com.t60.oa.po.OfficeRes _officeRes) {

		this.setId(_id);
		this.setOfficeRes(_officeRes);
		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: appleNum
	 */
	public java.lang.Integer getAppleNum () {
		return _appleNum;
	}

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


	/**
	 * Return the value associated with the column: unit
	 */
	public java.lang.String getUnit () {
		return _unit;
	}

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


	/**
	 * Return the value associated with the column: storeType
	 */
	public java.lang.String getStoreType () {
		return _storeType;
	}

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


	/**
	 * Return the value associated with the column: storeName
	 */
	public java.lang.String getStoreName () {
		return _storeName;
	}

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


	/**
	 * Return the value associated with the column: actuaNum
	 */
	public java.lang.Integer getActuaNum () {
		return _actuaNum;
	}

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


	/**
     * @hibernate.property
     *  column=officeRes
	 * not-null=true
	 */
	public com.t60.oa.po.OfficeRes getOfficeRes () {
		return this._officeRes;
	}

	/**
	 * Set the value related to the column: officeRes
	 * @param _officeRes the officeRes value
	 */
	public void setOfficeRes (com.t60.oa.po.OfficeRes _officeRes) {
		this._officeRes = _officeRes;
	}


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