📄 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 + -