package cn.wbms.bms.book.entity;
import cn.wbms.bms.common.web.JsonDateTypeConvert;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* book实体类
* @author CANAAN
*
*/
public class Book implements Serializable{
private static final long serialVersionUID = -275922131270811186L;
/**
* 书籍id
*/
private Integer bId;
/**
* 书籍ISBN号
*/
private String isbn;
/**
* 书名
*/
private String bName;
/**
* 书籍类别
*/
private String bClass;
/**
* 作者
*/
private String author;
/**
* 出版商
*/
private String press;
/**
* 出版时间
* @DateTimeFormat注解用于定义日期格式
* 此格式需要与页面上传递的日期格式相同
* 否则有可能会出现400错误
* */
@DateTimeFormat(pattern = "yyyy/MM/dd")
private Date publishTime;
/**
* 单价
*/
private Double price;
/**
* 数量
*/
private Integer num;
/**
* 书架号
*/
private String bookshelfNum;
/**
* 状态 1为可借 0为不可借
*/
private Integer state;
/**
* 书籍录入时间
*/
private Date createdTime;
/**
* 修改时间
*/
private Date modifiedTime;
/**
* 录入人
*/
private String createdUser;
/**
* 修改人
*/
private String modifiedUser;
public Integer getbId() {
return bId;
}
public void setbId(Integer bId) {
this.bId = bId;
}
public String getIsbn() {
return isbn;
}
public void setIsbn(String isbn) {
this.isbn = isbn;
}
public String getbName() {
return bName;
}
public void setbName(String bName) {
this.bName = bName;
}
public String getbClass() {
return bClass;
}
public void setbClass(String bClass) {
this.bClass = bClass;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getPress() {
return press;
}
public void setPress(String press) {
this.press = press;
}
/**
* 使用JsonSerialize注解的目的是
* 将此值填充到json串时先按照指定格式进行转换*/
@JsonSerialize(using=JsonDateTypeConvert.class)
public Date getPublishTime() {
return publishTime;
}
public void setPublishTime(Date publishTime) {
this.publishTime = publishTime;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public Integer getNum() {
return num;
}
public void setNum(Integer num) {
this.num = num;
}
public String getBookshelfNum() {
return bookshelfNum;
}
public void setBookshelfNum(String bookshelfNum) {
this.bookshelfNum = bookshelfNum;
}
public Integer getState() {
return state;
}
public void setState(Integer state) {
this.state = state;
}
public Date getCreatedTime() {
return createdTime;
}
public void setCreatedTime(Date createdTime) {
this.createdTime = createdTime;
}
public Date getModifiedTime() {
return modifiedTime;
}
public void setModifiedTime(Date modifiedTime) {
this.modifiedTime = modifiedTime;
}
public String getCreatedUser() {
return createdUser;
}
public void setCreatedUser(String createdUser) {
this.createdUser = createdUser;
}
public String getModifiedUser() {
return modifiedUser;
}
public void setModifiedUser(String modifiedUser) {
this.modifiedUser = modifiedUser;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((author == null) ? 0 : author.hashCode());
result = prime * result + ((bClass == null) ? 0 : bClass.hashCode());
result = prime * result + ((bId == null) ? 0 : bId.hashCode());
result = prime * result + ((bName == null) ? 0 : bName.hashCode());
result = prime * result + ((bookshelfNum == null) ? 0 : bookshelfNum.hashCode());
result = prime * result + ((createdTime == null) ? 0 : createdTime.hashCode());
result = prime * result + ((createdUser == null) ? 0 : createdUser.hashCode());
result = prime * result + ((isbn == null) ? 0 : isbn.hashCode());
result = prime * result + ((modifiedTime == null) ? 0 : modifiedTime.hashCode());
result = prime * result + ((modifiedUser == null) ? 0 : modifiedUser.hashCode());
result = prime * result + ((num == null) ? 0 : num.hashCode());
result = prime * result + ((press == null) ? 0 : press.hashCode());
result = prime * result + ((price == null) ? 0 : price.hashCode());
result = prime * result + ((publishTime == null) ? 0 : publishTime.hashCode());
result = prime * result + ((state == null) ? 0 : state.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
Book other = (Book) obj;
if (author == null) {
if (other.author != null) {
return false;
}
} else if (!author.equals(other.author)) {
return false;
}
if (bClass == null) {
if (other.bClass != null) {
return false;
}
} else if (!bClass.equals(other.bClass)) {
return false;
}
if (bId == null) {
if (other.bId != null) {
return false;
}
} else if (!bId.equals(other.bId)) {
return false;
}
if (bName == null) {
if (other.bName != null) {
return false;
}
} else if (!bName.equals(other.bName)) {
return false;
}
if (bookshelfNum == null) {
if (other.bookshelfNum != null) {
return false;
}
} else if (!bookshelfNum.equals(other.bookshelfNum)) {
return false;
}
if (createdTime == null) {
if (other.createdTime != null) {
return false;
}
} else if (!createdTime.equals(other.createdTime)) {
return false;
}
if (createdUser == null) {
if (other.createdUser != null) {
return false;
}
} else if (!createdUser.equals(other.createdUser)) {
return false;
}
if (isbn == null) {
if (other.isbn != null) {
return false;
}
} else if (!isbn.equals(other.isbn)) {
return false;
}
if (modifiedTime == null) {
if (other.modifiedTime != null) {
return false;
}
} else if (!modifiedTime.equals(other.modifiedTime)) {
return false;
}
if (modifiedUser == null) {
if (other.modifiedUser != null) {
return false;
}
} else if (!modifiedUser.equals(other.modifiedUser)) {
return false;
}
if (num == null) {
if (other.num != null) {
return false;
}
} else if (!num.equals(other.num)) {
return false;
}
if (press == null) {
if (other.press != null) {
return false;
}
} else if (!press.equals(other.press)) {
return false;
}
if (price == null) {
if (other.price != null) {
return false;
}
} else if (!price.equals(other.price)) {
return false;
}
if (publishTime == null) {
if (other.publishTime != null) {
return false;
}
} else if (!publishTime.equals(other.publishTime)) {
return false;
}
if (state == null) {
if (other.state != null) {
return false;
}
} else if (!state.equals(other.state)) {
return false;
}
return true;
}
@Override
public String toString() {
return "Book [bId=" + bId + ", isbn=" + isbn + ", bName=" + bName + ", bClass=" + bClass + ", author=" + author
+ ", press=" + press + ", publishTime=" + publishTime + ", price=" + price + ", num=" + num
+ ", bookshelfNum=" + bookshelfNum + ", state="
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
大学毕设-图书管理系统.zip (322个子文件)
style.css 147KB
bootstrap.css 129KB
style.css 39KB
font-awesome.css 25KB
ui.jqgrid-bootstrap.css 18KB
ui.jqgrid.css 17KB
layer.css 14KB
bootstrap-fullcalendar.css 11KB
awesome.css 8KB
style-responsive.css 7KB
metroStyle.css 6KB
zTreeStyle.css 6KB
layer.css 5KB
jquery.fancybox.css 4KB
style.css 3KB
table-responsive.css 3KB
jquery.slider.min.css 3KB
jslider.css 2KB
jquery.gritter.css 2KB
jquery.gritter0.css 2KB
to-do.css 2KB
jquery.treegrid.css 1KB
ui.jqgrid-bootstrap-ui.css 662B
jslider.round.plastic.css 248B
jslider.round.css 216B
jquery.easy-pie-chart.css 141B
jslider.plastic.css 126B
jslider.blue.css 119B
Thumbs.db 45KB
Thumbs.db 9KB
Thumbs.db 8KB
Thumbs.db 8KB
fontawesome-webfont.eot 71KB
glyphicons-halflings-regular.eot 20KB
linecons.eot 15KB
loading-0.gif 6KB
zTreeStandard.gif 5KB
metro.gif 5KB
loading-2.gif 2KB
loading-1.gif 701B
loading.gif 381B
loading.gif 381B
loading.gif 381B
line_conn.gif 45B
ie-spacer.gif 43B
index.html 15KB
bms1.0.iml 6KB
main.iml 813B
test.iml 475B
Book.java 8KB
SysUserServiceImpl.java 5KB
BookController.java 5KB
SysRoleServiceImpl.java 4KB
BookServiceImpl.java 4KB
AttachmentServiceImpl.java 4KB
BookTypeServiceImpl.java 3KB
SysMenu.java 3KB
SysUser.java 3KB
Organization.java 3KB
ShiroUserRealm.java 3KB
Attachment.java 3KB
AttachmentController.java 2KB
SysUserController.java 2KB
SysRoleController.java 2KB
SysMenuController.java 2KB
BookTypeController.java 2KB
SysRole.java 2KB
BookType.java 2KB
SysMenuServiceImpl.java 2KB
BookService.java 2KB
TestDaoCase.java 2KB
BookDao.java 1KB
TestCommon.java 1KB
PageObject.java 1KB
JsonDateTypeConvert.java 1KB
SysShiroServiceImpl.java 1KB
SysRoleMenu.java 1KB
SysUserRole.java 1KB
JsonResult.java 1KB
IndexController.java 983B
SysLoginController.java 937B
SysUserDao.java 823B
ServiceException.java 822B
BookTypeDao.java 808B
ControllerException.java 773B
SysRoleDao.java 768B
BookTypeService.java 753B
SysUserService.java 631B
EncodeUtil.java 585B
FormatUtil.java 503B
SysRoleService.java 501B
SysMenuDao.java 434B
AttachmentService.java 420B
AttachmentDao.java 418B
SysUserRoleDao.java 409B
SysMenuService.java 407B
TestBase.java 382B
TestBase.java 382B
BaseDao.java 320B
SysRoleMenuDao.java 310B
共 322 条
- 1
- 2
- 3
- 4
资源评论
马coder
- 粉丝: 1203
- 资源: 6602
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Python 程序语言设计模式思路-行为型模式:策略模式:将算法封装成独立的类,并使它们可以互相替换及支付模式数据压缩
- main.py
- Last Loaded Test.DBK
- Screenshot_20240520_163011.jpg
- ubuntu-python3-whisper-tornado docker镜像 Dockerfile
- ubuntu-python3-whisper-tornado docker镜像07
- 新录音 8.m4a
- ubuntu-python3-whisper-tornado docker镜像
- ubuntu-python3-whisper-tornado docker镜像
- ubuntu-python3-whisper-tornado docker镜像09
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功