?? abstractnews.java
字號:
package com.fise;
/**
* AbstractNews generated by MyEclipse - Hibernate Tools
*/
public abstract class AbstractNews implements java.io.Serializable {
// Fields
private int hashValue = 0;
private Integer id;
private String date;
private String title;
private String info;
// Constructors
/** default constructor */
public AbstractNews() {
}
/** full constructor */
public AbstractNews(Integer id) {
this.setId(id);
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDate() {
return this.date;
}
public void setDate(String date) {
this.date = date;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public String getInfo() {
return this.info;
}
public void setInfo(String info) {
this.info = info;
}
public boolean equals(Object rhs)
{
if (rhs == null)
return false;
if (! (rhs instanceof News))
return false;
News that = (News) rhs;
if (this.getId() != null && that.getId() != null)
{
if (! this.getId().equals(that.getId()))
{
return false;
}
}
return true;
}
public int hashCode()
{
if (this.hashValue == 0)
{
int result = 17;
int idValue = this.getId() == null ? 0 : this.getId().hashCode();
result = result * 37 + idValue;
this.hashValue = result;
}
return this.hashValue;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -