📄 articleid.java
字号:
package com.web.common.bean;
import java.util.Date;
/**
* ArticleId generated by MyEclipse - Hibernate Tools
*/
public class ArticleId implements java.io.Serializable {
// Fields
private long id;
private String topic;
private String type;
private String author;
private String articleFrom;
private String content;
private long hits;
private Date senddate;
private String pubname;
// Constructors
/** default constructor */
public ArticleId() {
}
/** minimal constructor */
public ArticleId(long id, String topic, String type, String author, String articleFrom, String content, String pubname) {
this.id = id;
this.topic = topic;
this.type = type;
this.author = author;
this.articleFrom = articleFrom;
this.content = content;
this.pubname = pubname;
}
/** full constructor */
public ArticleId(long id, String topic, String type, String author, String articleFrom, String content, long hits, Date senddate, String pubname) {
this.id = id;
this.topic = topic;
this.type = type;
this.author = author;
this.articleFrom = articleFrom;
this.content = content;
this.hits = hits;
this.senddate = senddate;
this.pubname = pubname;
}
// Property accessors
public long getId() {
return this.id;
}
public void setId(long id) {
this.id = id;
}
public String getTopic() {
return this.topic;
}
public void setTopic(String topic) {
this.topic = topic;
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
public String getAuthor() {
return this.author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getArticleFrom() {
return this.articleFrom;
}
public void setArticleFrom(String articleFrom) {
this.articleFrom = articleFrom;
}
public String getContent() {
return this.content;
}
public void setContent(String content) {
this.content = content;
}
public long getHits() {
return this.hits;
}
public void setHits(long hits) {
this.hits = hits;
}
public Date getSenddate() {
return this.senddate;
}
public void setSenddate(Date senddate) {
this.senddate = senddate;
}
public String getPubname() {
return this.pubname;
}
public void setPubname(String pubname) {
this.pubname = pubname;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof ArticleId) ) return false;
ArticleId castOther = ( ArticleId ) other;
return (this.getId()==castOther.getId()) && ( (this.getTopic()==castOther.getTopic()) || ( this.getTopic()!=null && castOther.getTopic()!=null && this.getTopic().equals(castOther.getTopic()) ) ) && ( (this.getType()==castOther.getType()) || ( this.getType()!=null && castOther.getType()!=null && this.getType().equals(castOther.getType()) ) ) && ( (this.getAuthor()==castOther.getAuthor()) || ( this.getAuthor()!=null && castOther.getAuthor()!=null && this.getAuthor().equals(castOther.getAuthor()) ) ) && ( (this.getArticleFrom()==castOther.getArticleFrom()) || ( this.getArticleFrom()!=null && castOther.getArticleFrom()!=null && this.getArticleFrom().equals(castOther.getArticleFrom()) ) ) && ( (this.getContent()==castOther.getContent()) || ( this.getContent()!=null && castOther.getContent()!=null && this.getContent().equals(castOther.getContent()) ) ) && (this.getHits()==castOther.getHits()) && ( (this.getSenddate()==castOther.getSenddate()) || ( this.getSenddate()!=null && castOther.getSenddate()!=null && this.getSenddate().equals(castOther.getSenddate()) ) ) && ( (this.getPubname()==castOther.getPubname()) || ( this.getPubname()!=null && castOther.getPubname()!=null && this.getPubname().equals(castOther.getPubname()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + (int) this.getId();
result = 37 * result + ( getTopic() == null ? 0 : this.getTopic().hashCode() );
result = 37 * result + ( getType() == null ? 0 : this.getType().hashCode() );
result = 37 * result + ( getAuthor() == null ? 0 : this.getAuthor().hashCode() );
result = 37 * result + ( getArticleFrom() == null ? 0 : this.getArticleFrom().hashCode() );
result = 37 * result + ( getContent() == null ? 0 : this.getContent().hashCode() );
result = 37 * result + (int) this.getHits();
result = 37 * result + ( getSenddate() == null ? 0 : this.getSenddate().hashCode() );
result = 37 * result + ( getPubname() == null ? 0 : this.getPubname().hashCode() );
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -