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

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

	public static String PROP_TYPE = "type";
	public static String PROP_STATE = "state";
	public static String PROP_NUM = "num";


	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String _num;

	// fields
	private java.lang.String _type;
	private java.lang.String _state;

	// collections
	private java.util.Collection _applySet;


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

	/**
	 * Constructor for primary key
	 */
	public BaseCar (java.lang.String _num) {
		this.setNum(_num);
		initialize();
	}

	protected void initialize () {}



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="assigned"
     *  column="num"
     */
	public java.lang.String getNum () {
		return _num;
	}

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


	/**
	 * Return the value associated with the column: type
	 */
	public java.lang.String getType () {
		return _type;
	}

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


	/**
	 * Return the value associated with the column: state
	 */
	public java.lang.String getState () {
		return _state;
	}

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


	/**	 * Return the value associated with the column: applySet	 */	public java.util.Collection getApplySet () {
		return this._applySet;
	}

	/**
	 * Set the value related to the column: applySet
	 * @param _applySet the applySet value
	 */
	public void setApplySet (java.util.Collection _applySet) {
		this._applySet = _applySet;
	}
	
	public void addToApplySet (Object obj) {
		if (null == this._applySet) this._applySet = new java.util.ArrayList();
		this._applySet.add(obj);
	}



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


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


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

}

⌨️ 快捷键说明

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