首页>代码>Java swing实现小说网站客户端>/MySQLTest/src/Adminmodel/Chapter.java
package Adminmodel;
//以两个属性作为联合主键,需要继承接口java.io.Serializable

public class Chapter {
private int chapterid;//章节id
private Integer novelid;//小说id
private String chaptername;//章节名称
private String chaptercontent;//章节内容


public Chapter() {
	super();
	// TODO Auto-generated constructor stub
}

//添加章节的构造方法
public Chapter(Integer novelid, String chaptername, String chaptercontent) {
	super();
	this.novelid = novelid;
	this.chaptername = chaptername;
	this.chaptercontent = chaptercontent;
}

//查询章节的构造方法
public Chapter(Integer novelid, String chaptername) {
	super();
	this.novelid = novelid;
	this.chaptername = chaptername;
}

//修改章节的构造方法
public Chapter(int chapterid, Integer novelid, String chaptername, String chaptercontent) {
	super();
	this.chapterid = chapterid;
	this.novelid = novelid;
	this.chaptername = chaptername;
	this.chaptercontent = chaptercontent;
}


public int getChapterid() {
	return chapterid;
}






public void setChapterid(int chapterid) {
	this.chapterid = chapterid;
}


public Integer getNovelid() {
	return novelid;
}


public void setNovelid(Integer novelid) {
	this.novelid = novelid;
}


public String getChaptername() {
	return chaptername;
}


public void setChaptername(String chaptername) {
	this.chaptername = chaptername;
}


public String getChaptercontent() {
	return chaptercontent;
}


public void setChaptercontent(String chaptercontent) {
	this.chaptercontent = chaptercontent;
}



}
最近下载更多
jiangneng666  LV2 2023年10月20日
limuzi  LV7 2023年6月12日
D  LV5 2023年3月5日
1424841000  LV2 2023年1月12日
ming_123_9715  LV23 2022年12月4日
huayan  LV9 2022年6月29日
llovezrr  LV1 2022年6月8日
jery2018  LV5 2022年5月26日
张子墨  LV2 2022年5月11日
wyx065747  LV67 2022年5月7日
最近浏览更多
玖零定制问题修复  LV34 4月4日
yeanan  LV1 3月28日
luochenQAQ 3月16日
暂无贡献等级
564782135l  LV7 1月22日
768881787  LV7 1月10日
jkjfdgbkl  LV2 2023年11月1日
jiangneng666  LV2 2023年10月20日
graceful 2023年10月18日
暂无贡献等级
SX520886  LV2 2023年10月9日
wersdfs  LV1 2023年9月4日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友