abstractchapter.java
来自「在线读书交流平台」· Java 代码 · 共 109 行
JAVA
109 行
package com.olr.beans;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* AbstractChapter entity provides the base persistence definition of the
* Chapter entity.
*
* @author MyEclipse Persistence Tools
*/
public abstract class AbstractChapter implements java.io.Serializable {
// Fields
private Integer chapterId;
private String chapterName;
private Integer bookId;
private Integer chapterNum;
private String chapterText;
private Date postdate;
private Set<Comment> comments=new HashSet();
// Constructors
/** default constructor */
public AbstractChapter() {
}
/** minimal constructor */
public AbstractChapter(String chapterName, Integer bookId,
Integer chapterNum) {
this.chapterName = chapterName;
this.bookId = bookId;
this.chapterNum = chapterNum;
}
/** full constructor */
public AbstractChapter(String chapterName, Integer bookId,
Integer chapterNum, String chapterText, Date postdate) {
this.chapterName = chapterName;
this.bookId = bookId;
this.chapterNum = chapterNum;
this.chapterText = chapterText;
this.postdate = postdate;
}
// Property accessors
public Integer getChapterId() {
return this.chapterId;
}
public void setChapterId(Integer chapterId) {
this.chapterId = chapterId;
}
public String getChapterName() {
return this.chapterName;
}
public void setChapterName(String chapterName) {
this.chapterName = chapterName;
}
public Integer getBookId() {
return this.bookId;
}
public void setBookId(Integer bookId) {
this.bookId = bookId;
}
public Integer getChapterNum() {
return this.chapterNum;
}
public void setChapterNum(Integer chapterNum) {
this.chapterNum = chapterNum;
}
public String getChapterText() {
return this.chapterText;
}
public void setChapterText(String chapterText) {
this.chapterText = chapterText;
}
public Date getPostdate() {
return this.postdate;
}
public void setPostdate(Date postdate) {
this.postdate = postdate;
}
public Set<Comment> getComments() {
return comments;
}
public void setComments(Set<Comment> comments) {
this.comments = comments;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?