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

📄 baserpanoramahotspot.java

📁 利用hibernate框架进行开发的全景浏览与导航系统。
💻 JAVA
字号:
package com.shandong.bean.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the R_PANORAMA_HOTSPOT table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="R_PANORAMA_HOTSPOT"
 */

public abstract class BaseRPanoramaHotspot  implements Serializable {

	public static String REF = "RPanoramaHotspot";


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

	/**
	 * Constructor for primary key
	 */
	public BaseRPanoramaHotspot (
		java.lang.String panorama,
		java.lang.Integer hotspot) {

		this.setPanorama(panorama);
		this.setHotspot(hotspot);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key

	private java.lang.String panorama;

	private java.lang.Integer hotspot;



	/**
     * @hibernate.property
     *  column=Panorama
	 * not-null=true
	 */
	public java.lang.String getPanorama () {
		return this.panorama;
	}

	/**
	 * Set the value related to the column: Panorama
	 * @param panorama the Panorama value
	 */
	public void setPanorama (java.lang.String panorama) {
		this.panorama = panorama;
		this.hashCode = Integer.MIN_VALUE;
	}

	/**
     * @hibernate.property
     *  column=Hotspot
	 * not-null=true
	 */
	public java.lang.Integer getHotspot () {
		return this.hotspot;
	}

	/**
	 * Set the value related to the column: Hotspot
	 * @param hotspot the Hotspot value
	 */
	public void setHotspot (java.lang.Integer hotspot) {
		this.hotspot = hotspot;
		this.hashCode = Integer.MIN_VALUE;
	}





	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.shandong.bean.RPanoramaHotspot)) return false;
		else {
			com.shandong.bean.RPanoramaHotspot rPanoramaHotspot = (com.shandong.bean.RPanoramaHotspot) obj;
			if (null != this.getPanorama() && null != rPanoramaHotspot.getPanorama()) {
				if (!this.getPanorama().equals(rPanoramaHotspot.getPanorama())) {
					return false;
				}
			}
			else {
				return false;
			}
			if (null != this.getHotspot() && null != rPanoramaHotspot.getHotspot()) {
				if (!this.getHotspot().equals(rPanoramaHotspot.getHotspot())) {
					return false;
				}
			}
			else {
				return false;
			}
			return true;
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			StringBuilder sb = new StringBuilder();
			if (null != this.getPanorama()) {
				sb.append(this.getPanorama().hashCode());
				sb.append(":");
			}
			else {
				return super.hashCode();
			}
			if (null != this.getHotspot()) {
				sb.append(this.getHotspot().hashCode());
				sb.append(":");
			}
			else {
				return super.hashCode();
			}
			this.hashCode = sb.toString().hashCode();
		}
		return this.hashCode;
	}


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


}

⌨️ 快捷键说明

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