📄 entries.java
字号:
/*
*
* 开发时间:2004-08-20 at 05:40:07
*
* 作者:曹广鑫
*
* 网站:www.helpsoft.org 电子邮件:support@helpsoft.org
*/
package org.helpsoft.blog.dto;
import java.io.Serializable;
public class Entries implements Serializable
{
/**
* This attribute maps to the column entryid in the entries table.
*/
private int entryid;
/**
* This attribute maps to the column name in the entries table.
*/
private String name;
/**
* This attribute maps to the column author in the entries table.
*/
private String author;
/**
* This attribute maps to the column date in the entries table.
*/
private String date;
/**
* This attribute maps to the column content in the entries table.
*/
private String content;
/**
* Method 'Entries'
*
*/
public Entries()
{
}
/**
* Method 'getEntryid'
*
* @return int
*/
public int getEntryid()
{
return entryid;
}
/**
* Method 'setEntryid'
*
* @param entryid
*/
public void setEntryid(int entryid)
{
this.entryid = entryid;
}
/**
* Method 'getName'
*
* @return java.lang.String
*/
public java.lang.String getName()
{
return name;
}
/**
* Method 'setName'
*
* @param name
*/
public void setName(java.lang.String name)
{
this.name = name;
}
/**
* Method 'getAuthor'
*
* @return java.lang.String
*/
public java.lang.String getAuthor()
{
return author;
}
/**
* Method 'setAuthor'
*
* @param author
*/
public void setAuthor(java.lang.String author)
{
this.author = author;
}
/**
* Method 'getDate'
*
* @return java.lang.String
*/
public java.lang.String getDate()
{
return date;
}
/**
* Method 'setDate'
*
* @param date
*/
public void setDate(java.lang.String date)
{
this.date = date;
}
/**
* Method 'getContent'
*
* @return java.lang.String
*/
public java.lang.String getContent()
{
return content;
}
/**
* Method 'setContent'
*
* @param content
*/
public void setContent(java.lang.String content)
{
this.content = content;
}
/**
* Method 'equals'
*
* @param _other
* @return boolean
*/
public boolean equals(Object _other)
{
if (_other == null) {
return false;
}
if (_other == this) {
return true;
}
if (!(_other instanceof Entries)) {
return false;
}
final Entries _cast = (Entries) _other;
if (entryid != _cast.entryid) {
return false;
}
if (name == null ? _cast.name != name : !name.equals( _cast.name )) {
return false;
}
if (author == null ? _cast.author != author : !author.equals( _cast.author )) {
return false;
}
if (date == null ? _cast.date != date : !date.equals( _cast.date )) {
return false;
}
if (content == null ? _cast.content != content : !content.equals( _cast.content )) {
return false;
}
return true;
}
/**
* Method 'hashCode'
*
* @return int
*/
public int hashCode()
{
int _hashCode = 0;
_hashCode = 29 * _hashCode + entryid;
if (name != null) {
_hashCode = 29 * _hashCode + name.hashCode();
}
if (author != null) {
_hashCode = 29 * _hashCode + author.hashCode();
}
if (date != null) {
_hashCode = 29 * _hashCode + date.hashCode();
}
if (content != null) {
_hashCode = 29 * _hashCode + content.hashCode();
}
return _hashCode;
}
/**
* Method 'createPk'
*
* @return EntriesPk
*/
public EntriesPk createPk()
{
return new EntriesPk(entryid);
}
/**
* Method 'toString'
*
* @return String
*/
public String toString()
{
StringBuffer ret = new StringBuffer();
ret.append( "org.helpsoft.blog.dto.Entries: " );
ret.append( "entryid='" + entryid + "'" );
ret.append( ", name='" + name + "'" );
ret.append( ", author='" + author + "'" );
ret.append( ", date='" + date + "'" );
ret.append( ", content='" + content + "'" );
return ret.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -