📄 searchtopic.java
字号:
package tarena.data;
import tarena.entity.Post;
/**
* 查询主题。用于search.htm页面主题查询结果的组装。
*/
public class SearchTopic {
private Integer id;
private String title;
private String sectionname;
private Post author;
private Post lastmender;
private Long back;
private Integer viewnum;
public SearchTopic(){}
public SearchTopic(Integer id, String title, String sectionname,
Post author, Post lastmender, Long back, Integer viewnum) {
super();
this.id = id;
this.title = title;
this.sectionname = sectionname;
this.author = author;
this.lastmender = lastmender;
this.back = back;
this.viewnum = viewnum;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSectionname() {
return sectionname;
}
public void setSectionname(String sectionname) {
this.sectionname = sectionname;
}
public Post getAuthor() {
return author;
}
public void setAuthor(Post author) {
this.author = author;
}
public Post getLastmender() {
return lastmender;
}
public void setLastmender(Post lastmender) {
this.lastmender = lastmender;
}
public Long getBack() {
return back;
}
public void setBack(Long back) {
this.back = back;
}
public Integer getViewnum() {
return viewnum;
}
public void setViewnum(Integer viewnum) {
this.viewnum = viewnum;
}
// public String toString(){
// return "["+this.id+","+this.title+","+this.sectionname+","+this.author.getUser().getUsername()+","+this.lastmender.getUser().getUsername()+","+this.back+","+this.viewnum+"]";
// }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -