📄 basethotspot.java
字号:
package com.shandong.bean.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the T_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="T_HOTSPOT"
*/
public abstract class BaseTHotspot implements Serializable {
public static String REF = "THotspot";
public static String PROP_LINK = "Link";
public static String PROP_VIDEO = "Video";
public static String PROP_NAME = "Name";
public static String PROP_ID = "Id";
public static String PROP_INFO = "Info";
// constructors
public BaseTHotspot () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseTHotspot (java.lang.Integer id) {
this.setId(id);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer id;
// fields
private java.lang.String name;
private java.lang.String info;
private java.lang.String video;
private java.lang.String link;
/**
* Return the unique identifier of this class
* @hibernate.id
* column="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: Name
*/
public java.lang.String getName () {
return name;
}
/**
* Set the value related to the column: Name
* @param name the Name value
*/
public void setName (java.lang.String name) {
this.name = name;
}
/**
* Return the value associated with the column: Info
*/
public java.lang.String getInfo () {
return info;
}
/**
* Set the value related to the column: Info
* @param info the Info value
*/
public void setInfo (java.lang.String info) {
this.info = info;
}
/**
* Return the value associated with the column: Video
*/
public java.lang.String getVideo () {
return video;
}
/**
* Set the value related to the column: Video
* @param video the Video value
*/
public void setVideo (java.lang.String video) {
this.video = video;
}
/**
* Return the value associated with the column: Link
*/
public java.lang.String getLink () {
return link;
}
/**
* Set the value related to the column: Link
* @param link the Link value
*/
public void setLink (java.lang.String link) {
this.link = link;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.shandong.bean.THotspot)) return false;
else {
com.shandong.bean.THotspot tHotspot = (com.shandong.bean.THotspot) obj;
if (null == this.getId() || null == tHotspot.getId()) return false;
else return (this.getId().equals(tHotspot.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 + -