package com.blog.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "Entries")
public class Entry implements java.io.Serializable {
private static final long serialVersionUID = -6305671055498429342L;
private Integer id;
private String title;
private String content;
private Integer commentHit;
private Integer allowComment;
private Integer status;
private Date createdTime;
private Date updatedTime;
private Integer hits;
//外键
private Category category;
public Entry() {
}
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", unique = true, nullable = false)
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
@ManyToOne
@JoinColumn(name = "category_id", nullable = false)
public Category getCategory() {
return this.category;
}
public void setCategory(Category category) {
this.category = category;
}
@Column(name = "title", nullable = false)
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
@Column(name = "content", nullable = false)
public String getContent() {
return this.content;
}
public void setContent(String content) {
this.content = content;
}
@Column(name = "comment_hit", nullable = false)
public Integer getCommentHit() {
return this.commentHit;
}
public void setCommentHit(Integer commentHit) {
this.commentHit = commentHit;
}
@Column(name = "allow_comment", nullable = false)
public Integer getAllowComment() {
return this.allowComment;
}
public void setAllowComment(Integer allowComment) {
this.allowComment = allowComment;
}
@Column(name = "status", nullable = false)
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
@Column(name = "created_time", nullable = false, length = 23)
public Date getCreatedTime() {
return this.createdTime;
}
public void setCreatedTime(Date createdTime) {
this.createdTime = createdTime;
}
@Column(name = "updated_time", length = 23)
public Date getUpdatedTime() {
return this.updatedTime;
}
public void setUpdatedTime(Date updatedTime) {
this.updatedTime = updatedTime;
}
@Column(name = "hits", nullable = false)
public Integer getHits() {
return this.hits;
}
public void setHits(Integer hits) {
this.hits = hits;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
blog.zip_blog_blog ssh
共64个文件
class:17个
java:15个
xml:15个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 138 浏览量
2022-09-22
23:13:19
上传
评论
收藏 580KB ZIP 举报
温馨提示
SSH的简单功能的blog适于java初级工程师
资源推荐
资源详情
资源评论
收起资源包目录
blog.zip (64个子文件)
blog
.mystrutsdata 240B
hibernate.reveng.xml 1024B
.springBeans 462B
.myhibernatedata 534B
.settings
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.wst.common.component 450B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 500B
org.eclipse.jdt.core.prefs 395B
src
applicationContext-action.xml 835B
applicationContext-dao.xml 838B
jdbc.properties 211B
com
blog
dao
GenericDao.java 239B
BlogDao.java 122B
impl
GenericDaoImpl.java 2KB
BlogDaoImpl.java 181B
action
BlogAction.java 681B
model
Blog.java 3KB
Entry.java 3KB
User.java 1KB
Category.java 2KB
Link.java 1KB
Comment.java 2KB
service
impl
BlogManagerImpl.java 448B
BlogManager.java 171B
util
Pagination.java 1KB
Const.java 360B
struts.xml 476B
applicationContext-service.xml 840B
applicationContext-core.xml 2KB
applicationContext.xml 1KB
.project 2KB
WebRoot
admin
editBlog.jsp 347B
META-INF
MANIFEST.MF 36B
WEB-INF
web.xml 985B
classes
applicationContext-action.xml 835B
applicationContext-dao.xml 838B
jdbc.properties 211B
com
blog
dao
GenericDao.class 468B
BlogDao.class 247B
impl
GenericDaoImpl$2.class 2KB
GenericDaoImpl.class 3KB
GenericDaoImpl$1.class 2KB
BlogDaoImpl.class 459B
action
BlogAction.class 1KB
model
User.class 2KB
Link.class 2KB
Comment.class 3KB
Entry.class 3KB
Blog.class 3KB
Category.class 2KB
service
BlogManager.class 235B
impl
BlogManagerImpl.class 994B
util
Const.class 705B
Pagination.class 2KB
struts.xml 476B
applicationContext-service.xml 840B
applicationContext-core.xml 2KB
applicationContext.xml 1KB
lib
sqljdbc4.jar 571KB
index.jsp 829B
.mymetadata 285B
.classpath 590B
.myeclipse
共 64 条
- 1
资源评论
御道御小黑
- 粉丝: 62
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Hyper-V配置工具 ManageEngine-HyperVConfigTool
- 基于灰色神经网络的订单需求预测
- Hyper-V监控工具 ManageEngine-HyperVPerformanceMonitor
- VMware监控工具 ManageEngine-VMHealthMonitor
- ZooKeeper分布式环境搭建详细指南.docx
- zookeeper之节点基本操作(一).zip
- json-server模拟后端接口(教程).pdf
- tomcat安装及配置教程.zip
- zookeeper之分布式环境搭建.zip
- SharePoint监控工具 SharePointHealthMonitor
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功