⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bookdetails.java

📁 实现在线书店的基本功能 应用了hibernate+jsp 技术采用了mvc三层设计模式
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package mypack;import java.io.Serializable;/** * * @author Administrator */ public class BookDetails implements Serializable {    private static final long serialVersionUID = 1L;       private String bookId;     private String title;    private String name;      private float price;       private int year;      private String description;      private int saleAmount;      private Booktype btid;    public BookDetails() {    }    public BookDetails(String bookId) {        this.bookId = bookId;    }    public BookDetails(String bookId, String title, String name, float price, int year, String description, int saleAmount) {        this.bookId = bookId;        this.title = title;        this.name = name;        this.price = price;        this.year = year;        this.description = description;        this.saleAmount = saleAmount;    }    public String getBookId() {        return bookId;    }    public void setBookId(String bookId) {        this.bookId = bookId;    }    public String getTitle() {        return title;    }    public void setTitle(String title) {        this.title = title;    }    public String getName() {        return name;    }    public void setName(String name) {        this.name = name;    }    public float getPrice() {        return price;    }    public void setPrice(float price) {        this.price = price;    }    public int getYear() {        return year;    }    public void setYear(int year) {        this.year = year;    }    public String getDescription() {        return description;    }    public void setDescription(String description) {        this.description = description;    }    public int getSaleAmount() {        return saleAmount;    }    public void setSaleAmount(int saleAmount) {        this.saleAmount = saleAmount;    }    public Booktype getBtid() {        return btid;    }    public void setBtid(Booktype btid) {        this.btid = btid;    }    @Override    public int hashCode() {        int hash = 0;        hash += (bookId != null ? bookId.hashCode() : 0);        return hash;    }    @Override    public boolean equals(Object object) {        // TODO: Warning - this method won't work in the case the id fields are not set        if (!(object instanceof BookDetails)) {            return false;        }        BookDetails other = (BookDetails) object;        if ((this.bookId == null && other.bookId != null) || (this.bookId != null && !this.bookId.equals(other.bookId))) {            return false;        }        return true;    }    @Override    public String toString() {        return "mypack.BookDetails[bookId=" + bookId + "]";    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -