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

📄 baseappgraphictype.java

📁 基于java的组态软件。使用了hibernate和spring技术
💻 JAVA
字号:
package domain.model;

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

	public static String PROP_APPGRAPHICTYPE_MEMO = "AppgraphictypeMemo";
	public static String PROP_APPGRAPHICTYPE_NAME = "AppgraphictypeName";
	public static String PROP_APPGRAPHICTYPE_URL = "AppgraphictypeUrl";
	public static String PROP_ID = "Id";


	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.lang.String _appgraphictypeName;
	private java.lang.String _appgraphictypeMemo;
	private java.lang.String _appgraphictypeUrl;

	// collections
	private java.util.Set _appGraphicSet;


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

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

	protected void initialize () {}



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="appGraphicType_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: appGraphicType_name
	 */
	public java.lang.String getAppgraphictypeName () {
		return _appgraphictypeName;
	}

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


	/**
	 * Return the value associated with the column: appGraphicType_memo
	 */
	public java.lang.String getAppgraphictypeMemo () {
		return _appgraphictypeMemo;
	}

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


	/**
	 * Return the value associated with the column: appGraphicType_url
	 */
	public java.lang.String getAppgraphictypeUrl () {
		return _appgraphictypeUrl;
	}

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


	/**	 * Return the value associated with the column: AppGraphicSet	 */	public java.util.Set getAppGraphicSet () {
		return this._appGraphicSet;
	}

	/**
	 * Set the value related to the column: AppGraphicSet
	 * @param _appGraphicSet the AppGraphicSet value
	 */
	public void setAppGraphicSet (java.util.Set _appGraphicSet) {
		this._appGraphicSet = _appGraphicSet;
	}
	
	public void addToAppGraphicSet (Object obj) {
		if (null == this._appGraphicSet) this._appGraphicSet = new java.util.HashSet();
		this._appGraphicSet.add(obj);
	}



	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof domain.model.BaseAppGraphicType)) return false;
		else {
			domain.model.BaseAppGraphicType mObj = (domain.model.BaseAppGraphicType) 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 + -