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

📄 book.java

📁 图书管理系统
💻 JAVA
字号:
package com.bean;
// default package

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;


/**
 * Book entity. @author MyEclipse Persistence Tools
 */

public class Book  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Type type;
     private String name;
     private String author;
     private Integer maxnumber;
     private String publishing;
     private Timestamp purchase;
     private Double price;
     private String isborrow;
     private Set borrowBooks = new HashSet(0);


    // Constructors

    /** default constructor */
    public Book() {
    }

    
    /** full constructor */
    public Book(Type type, String name, String author, Integer maxnumber, String publishing, Timestamp purchase, Double price, String isborrow, Set borrowBooks) {
        this.type = type;
        this.name = name;
        this.author = author;
        this.maxnumber = maxnumber;
        this.publishing = publishing;
        this.purchase = purchase;
        this.price = price;
        this.isborrow = isborrow;
        this.borrowBooks = borrowBooks;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Type getType() {
        return this.type;
    }
    
    public void setType(Type type) {
        this.type = type;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return this.author;
    }
    
    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getMaxnumber() {
        return this.maxnumber;
    }
    
    public void setMaxnumber(Integer maxnumber) {
        this.maxnumber = maxnumber;
    }

    public String getPublishing() {
        return this.publishing;
    }
    
    public void setPublishing(String publishing) {
        this.publishing = publishing;
    }

    public Timestamp getPurchase() {
        return this.purchase;
    }
    
    public void setPurchase(Timestamp purchase) {
        this.purchase = purchase;
    }

    public Double getPrice() {
        return this.price;
    }
    
    public void setPrice(Double price) {
        this.price = price;
    }

    public String getIsborrow() {
        return this.isborrow;
    }
    
    public void setIsborrow(String isborrow) {
        this.isborrow = isborrow;
    }

    public Set getBorrowBooks() {
        return this.borrowBooks;
    }
    
    public void setBorrowBooks(Set borrowBooks) {
        this.borrowBooks = borrowBooks;
    }
   








}

⌨️ 快捷键说明

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