e0b6775b6d82001b1400bb4cf9da2cc0
来自「jsf开发的简单博客」· 代码 · 共 57 行
TXT
57 行
package com.tangjun.web.bo;
import java.io.Serializable;
public abstract class AbstractBlogEntry implements Serializable {
/**
* The cached hash code value for this instance. Settting to 0 triggers
* re-calculation.
*/
private int hashValue = 0;
/** The composite primary key value. */
private java.lang.Integer id;
/** The value of the simple message property. */
private java.lang.String message;
public AbstractBlogEntry() {
}
public AbstractBlogEntry(java.lang.Integer id) {
this.setId(id);
}
public java.lang.Integer getId() {
return id;
}
public void setId(java.lang.Integer id) {
this.hashValue = 0;
this.id = id;
}
public java.lang.String getMessage() {
return message;
}
public void setMessage(java.lang.String message) {
this.message = message;
}
public boolean equals(Object rhs)
{
if (rhs == null)
return false;
if (! (rhs instanceof User))
return false;
User that = (User) rhs;
if (this.getId() == null || that.getId() == null)
return false;
return (this.getId().equals(that.getId()));
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?