basebackgraphic.java

来自「基于java的组态软件。使用了hibernate和spring技术」· Java 代码 · 共 174 行

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

	public static String PROP_BACKGRAPHIC_MEMO = "BackgraphicMemo";
	public static String PROP_BACKGRAPHIC_PATH = "BackgraphicPath";
	public static String PROP_BACKGRAPHIC_NAME = "BackgraphicName";
	public static String PROP_ID = "Id";


	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.lang.String _backgraphicName;
	private java.lang.String _backgraphicMemo;
	private java.lang.String _backgraphicPath;

	// collections
	private java.util.Set _appGraphicSet;


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

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

	protected void initialize () {}



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

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


	/**
	 * Return the value associated with the column: backGraphic_memo
	 */
	public java.lang.String getBackgraphicMemo () {
		return _backgraphicMemo;
	}

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


	/**
	 * Return the value associated with the column: backGraphic_path
	 */
	public java.lang.String getBackgraphicPath () {
		return _backgraphicPath;
	}

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


	/**	 * 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.BaseBackGraphic)) return false;
		else {
			domain.model.BaseBackGraphic mObj = (domain.model.BaseBackGraphic) 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 + =
减小字号Ctrl + -
显示快捷键?