news.java
来自「新闻系统 此系统是用struts+spring+hibernate开发的 」· Java 代码 · 共 138 行
JAVA
138 行
package com.news.bean;
/**
* News generated by MyEclipse - Hibernate Tools
*/
public class News implements java.io.Serializable {
// Fields
private String id;
private String typeid;
private String newtitle;
private String newauthor;
private String newfrom;
private String newdate;
private String newcontent;
private String count;
private String date2;
// Constructors
/** default constructor */
public News() {
}
/** minimal constructor */
public News(String id, String newtitle, String newauthor, String newfrom, String newdate, String newcontent, String date2) {
this.id = id;
this.newtitle = newtitle;
this.newauthor = newauthor;
this.newfrom = newfrom;
this.newdate = newdate;
this.newcontent = newcontent;
this.date2 = date2;
}
/** full constructor */
public News(String id, String typeid, String newtitle, String newauthor, String newfrom, String newdate, String newcontent, String count, String date2) {
this.id = id;
this.typeid = typeid;
this.newtitle = newtitle;
this.newauthor = newauthor;
this.newfrom = newfrom;
this.newdate = newdate;
this.newcontent = newcontent;
this.count = count;
this.date2 = date2;
}
// Property accessors
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getTypeid() {
return this.typeid;
}
public void setTypeid(String typeid) {
this.typeid = typeid;
}
public String getNewtitle() {
return this.newtitle;
}
public void setNewtitle(String newtitle) {
this.newtitle = newtitle;
}
public String getNewauthor() {
return this.newauthor;
}
public void setNewauthor(String newauthor) {
this.newauthor = newauthor;
}
public String getNewfrom() {
return this.newfrom;
}
public void setNewfrom(String newfrom) {
this.newfrom = newfrom;
}
public String getNewdate() {
return this.newdate;
}
public void setNewdate(String newdate) {
this.newdate = newdate;
}
public String getNewcontent() {
return this.newcontent;
}
public void setNewcontent(String newcontent) {
this.newcontent = newcontent;
}
public String getCount() {
return this.count;
}
public void setCount(String count) {
this.count = count;
}
public String getDate2() {
return this.date2;
}
public void setDate2(String date2) {
this.date2 = date2;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?