package com.lizi.bbs.domain;
import java.util.Date;
import java.util.Objects;
public class Post {
private int postId; // 帖子ID
private int userId; // 作者ID
private String postTitle; // 帖子标题
private String postContent; // 帖子内容
private Date createTime; // 帖子创建时间
private Date updateTime; // 帖子更新时间
private int likeCount; // 点赞数
private int commentCount; // 评论数
private int postViewCount; // 阅读量
public Post() {
}
public Post(int postId, int userId, String postTitle, String postContent, Date createTime, Date updateTime, int likeCount, int commentCount, int postViewCount) {
this.postId = postId;
this.userId = userId;
this.postTitle = postTitle;
this.postContent = postContent;
this.createTime = createTime;
this.updateTime = updateTime;
this.likeCount = likeCount;
this.commentCount = commentCount;
this.postViewCount = postViewCount;
}
public int getPostId() {
return postId;
}
public void setPostId(int postId) {
this.postId = postId;
}
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
public String getPostTitle() {
return postTitle;
}
public void setPostTitle(String postTitle) {
this.postTitle = postTitle;
}
public String getPostContent() {
return postContent;
}
public void setPostContent(String postContent) {
this.postContent = postContent;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public int getLikeCount() {
return likeCount;
}
public void setLikeCount(int likeCount) {
this.likeCount = likeCount;
}
public int getCommentCount() {
return commentCount;
}
public void setCommentCount(int commentCount) {
this.commentCount = commentCount;
}
public int getPostViewCount() {
return postViewCount;
}
public void setPostViewCount(int postViewCount) {
this.postViewCount = postViewCount;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Post post = (Post) o;
return postId == post.postId &&
userId == post.userId &&
likeCount == post.likeCount &&
commentCount == post.commentCount &&
postViewCount == post.postViewCount &&
Objects.equals(postTitle, post.postTitle) &&
Objects.equals(postContent, post.postContent) &&
Objects.equals(createTime, post.createTime) &&
Objects.equals(updateTime, post.updateTime);
}
@Override
public int hashCode() {
return Objects.hash(postId, userId, postTitle, postContent, createTime, updateTime, likeCount, commentCount, postViewCount);
}
@Override
public String toString() {
return "Post{" +
"postId=" + postId +
", userId=" + userId +
", postTitle='" + postTitle + '\'' +
", postContent='" + postContent + '\'' +
", createTime=" + createTime +
", updateTime=" + updateTime +
", likeCount=" + likeCount +
", commentCount=" + commentCount +
", postViewCount=" + postViewCount +
'}';
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
基于JavaWeb实现的微社区系统,BBS.zip
共15个文件
java:7个
xml:6个
jsp:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 102 浏览量
2024-05-12
15:50:54
上传
评论
收藏 12KB ZIP 举报
温馨提示
基于javaweb的系统
资源推荐
资源详情
资源评论
收起资源包目录
基于JavaWeb实现的微社区系统,BBS.zip (15个子文件)
BBS-master
src
com
lizi
bbs
dao
impl
UserDaoImpl.java 63B
IUserDao.java 59B
service
IUserService.java 67B
impl
UserServiceImpl.java 73B
domain
Comment.java 2KB
Post.java 4KB
User.java 2KB
web
WEB-INF
web.xml 304B
index.jsp 304B
.idea
uiDesigner.xml 9KB
artifacts
BBS_war_exploded.xml 475B
workspace.xml 18KB
misc.xml 273B
modules.xml 246B
BBS.iml 914B
共 15 条
- 1
资源评论
我慢慢地也过来了
- 粉丝: 6521
- 资源: 3999
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功