📄 abstracttopic.java
字号:
package com.olr.beans;
import java.util.Date;
/**
* AbstractTopic entity provides the base persistence definition of the Topic
* entity.
*
* @author MyEclipse Persistence Tools
*/
public abstract class AbstractTopic implements java.io.Serializable {
// Fields
private Integer topicId;
private Integer forumId;
private Integer parentId;
private String topicName;
private String content;
private String username;
private Date postdate;
private Integer replies;
// Constructors
/** default constructor */
public AbstractTopic() {
}
/** minimal constructor */
public AbstractTopic(Integer forumId, String content, String username) {
this.forumId = forumId;
this.content = content;
this.username = username;
}
/** full constructor */
public AbstractTopic(Integer forumId, Integer parentId, String topicName,
String content, String username, Date postdate, Integer replies) {
this.forumId = forumId;
this.parentId = parentId;
this.topicName = topicName;
this.content = content;
this.username = username;
this.postdate = postdate;
this.replies = replies;
}
// Property accessors
public Integer getTopicId() {
return this.topicId;
}
public void setTopicId(Integer topicId) {
this.topicId = topicId;
}
public Integer getForumId() {
return this.forumId;
}
public void setForumId(Integer forumId) {
this.forumId = forumId;
}
public Integer getParentId() {
return this.parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public String getTopicName() {
return this.topicName;
}
public void setTopicName(String topicName) {
this.topicName = topicName;
}
public String getContent() {
return this.content;
}
public void setContent(String content) {
this.content = content;
}
public String getUsername() {
return this.username;
}
public void setUsername(String username) {
this.username = username;
}
public Date getPostdate() {
return this.postdate;
}
public void setPostdate(Date postdate) {
this.postdate = postdate;
}
public Integer getReplies() {
return this.replies;
}
public void setReplies(Integer replies) {
this.replies = replies;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -