redbbs-pro/src/com/lxyer/bbs/content/ContentBean.java
lxyer 1f79682516 社区升级
1、表字段统一小写,
   2、表模块划分
   3、表状态等字段统一smallint
   4、部分字段值重新定义
2018-06-17 20:37:12 +08:00

147 lines
2.9 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.lxyer.bbs.content;
import org.redkale.convert.json.JsonConvert;
import org.redkale.source.FilterBean;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
*
* @author lxyer
*/
@Table(catalog = "db_redbbs", name = "content", comment = "[内容表]")
public class ContentBean implements FilterBean,java.io.Serializable {
@Id
@GeneratedValue
@Column(comment = "[内容id]")
private int contentid;
@Column(comment = "[用户id]")
private int userid;
@Column(length = 64, comment = "[标题]")
private String title = "";
@Column(length = 256, comment = "[摘要]")
private String digest = "";
@Column(comment = "[内容]")
private String content = "";
@Column(comment = "[创建时间]")
private long createtime;
@Column(comment = "[类别]")
private int cate;
@Column(comment = "[内容类型]1新闻2作品")
private int type;
@Column(comment = "[评论数]")
private int replynum;
@Column(comment = "[阅读量]")
private int viewnum;
/* @Column(comment = "[精] 0否1是")
private int wonderful;
@Column(comment = "[置顶] 0否1是")
private int top;
@Column(comment = "[结帖]大于0结帖")
private int solved;
@Column(comment = "[状态]")
private int status = 1;*/
public void setContentid(int contentid) {
this.contentid = contentid;
}
public int getContentid() {
return this.contentid;
}
public void setUserid(int userid) {
this.userid = userid;
}
public int getUserid() {
return this.userid;
}
public void setTitle(String title) {
this.title = title;
}
public String getTitle() {
return this.title;
}
public void setDigest(String digest) {
this.digest = digest;
}
public String getDigest() {
return this.digest;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public void setCreatetime(long createtime) {
this.createtime = createtime;
}
public long getCreatetime() {
return this.createtime;
}
public int getCate() {
return cate;
}
public void setCate(int cate) {
this.cate = cate;
}
public void setType(int type) {
this.type = type;
}
public int getType() {
return this.type;
}
public int getReplynum() {
return replynum;
}
public void setReplynum(int replynum) {
this.replynum = replynum;
}
public int getViewnum() {
return viewnum;
}
public void setViewnum(int viewnum) {
this.viewnum = viewnum;
}
@Override
public String toString() {
return JsonConvert.root().convertTo(this);
}
}