package com.yjl.pojo;
import java.sql.Blob;
import java.util.Date;
@author:两个蝴蝶飞
@date: 2019年3月8日 上午10:33:16
@Description 类型转换。
public class Book {
* @param id 主键编号 是int 型
* @param name 书名 是varchar 型
* @param price 价钱 是number或者float型
* @param publishDate 出版日期 是timestamp 或者date 型
* @param author 作者 是varchar 型
* @param specialPrice 是否是降价 是boolean 型
* @param description 描述 是长字段 text型
* @param bookImage 图片 是Blod 型。 开发中存储的是地址
private Integer id;
private String name;
private Double price;
private Date publishDate;
private String author;
private Boolean specialPrice;
private String description;
private Blob bookImage;
public Integer getId() {
return id;
public void setId(Integer id) {
this.id = id;
public String getName() {
return name;
public void setName(String name) {
this.name = name;
public Double getPrice() {
return price;
public void setPrice(Double price) {
this.price = price;
public Date getPublishDate() {
return publishDate;
public void setPublishDate(Date publishDate) {
this.publishDate = publishDate;
public String getAuthor() {
return author;
public void setAuthor(String author) {
this.author = author;
public Boolean getSpecialPrice() {
return specialPrice;
public void setSpecialPrice(Boolean specialPrice) {
this.specialPrice = specialPrice;
public String getDescription() {
return description;
public void setDescription(String description) {
this.description = description;
public Blob getBookImage() {
return bookImage;
public void setBookImage(Blob bookImage) {
this.bookImage = bookImage;
@Override
public String toString() {
return "Book [id=" + id + ", name=" + name + ", price=" + price + ", publishDate=" + publishDate + ", author="
+ author + ", specialPrice=" + specialPrice + ", description=" + description + "]";