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

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

	public static String PROP_APPGRAPHICTYPE = "Appgraphictype";
	public static String PROP_APPGRAPHIC_NAME = "AppgraphicName";
	public static String PROP_APPGRAPHIC_MEMO = "AppgraphicMemo";
	public static String PROP_BACKGRAPHIC = "Backgraphic";
	public static String PROP_ID = "Id";


	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.lang.String _appgraphicMemo;
	private java.lang.String _appgraphicName;

	// many to one
	private domain.AppGraphicType _appgraphictype;
	private domain.BackGraphic _backgraphic;

	// collections
	private java.util.Set _appGraphicItemSet;


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

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

	/**
	 * Constructor for required fields
	 */
	public BaseAppGraphic (
		java.lang.Integer _id,
		domain.AppGraphicType _appgraphictype,
		domain.BackGraphic _backgraphic) {

		this.setId(_id);
		this.setAppgraphictype(_appgraphictype);
		this.setBackgraphic(_backgraphic);
		initialize();
	}

	protected void initialize () {}



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

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


	/**
	 * Return the value associated with the column: appGraphic_name
	 */
	public java.lang.String getAppgraphicName () {
		return _appgraphicName;
	}

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


	/**
     * @hibernate.property
     *  column=appGraphicType_id
	 * not-null=true
	 */
	public domain.AppGraphicType getAppgraphictype () {
		return this._appgraphictype;
	}

	/**
	 * Set the value related to the column: appGraphicType_id
	 * @param _appgraphictype the appGraphicType_id value
	 */
	public void setAppgraphictype (domain.AppGraphicType _appgraphictype) {
		this._appgraphictype = _appgraphictype;
	}


	/**
     * @hibernate.property
     *  column=backGraphic_id
	 * not-null=true
	 */
	public domain.BackGraphic getBackgraphic () {
		return this._backgraphic;
	}

	/**
	 * Set the value related to the column: backGraphic_id
	 * @param _backgraphic the backGraphic_id value
	 */
	public void setBackgraphic (domain.BackGraphic _backgraphic) {
		this._backgraphic = _backgraphic;
	}


	/**	 * Return the value associated with the column: AppGraphicItemSet	 */	public java.util.Set getAppGraphicItemSet () {
		return this._appGraphicItemSet;
	}

	/**
	 * Set the value related to the column: AppGraphicItemSet
	 * @param _appGraphicItemSet the AppGraphicItemSet value
	 */
	public void setAppGraphicItemSet (java.util.Set _appGraphicItemSet) {
		this._appGraphicItemSet = _appGraphicItemSet;
	}
	
	public void addToAppGraphicItemSet (Object obj) {
		if (null == this._appGraphicItemSet) this._appGraphicItemSet = new java.util.HashSet();
		this._appGraphicItemSet.add(obj);
	}



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