books.java

来自「是Eclipse web开发从入门到精通的源码」· Java 代码 · 共 136 行

JAVA
136
字号
package library.hibernate;
// Generated 2006-8-5 16:17:23 by Hibernate Tools 3.1.0 beta3

import java.util.Date;


/**
 * Books generated by hbm2java
 */

public class Books  implements java.io.Serializable {


    // Fields    

     private String bookName;
     private String press;
     private String author;
     private String address;
     private Date pressDate;
     private Double price;
     private String com;
     private Integer booksCount;
     private Integer borrowedCount;


    // Constructors

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

	/** minimal constructor */
    public Books(String bookName) {
        this.bookName = bookName;
    }
    
    /** full constructor */
    public Books(String bookName, String press, String author, String address, Date pressDate, Double price, String com, Integer booksCount, Integer borrowedCount) {
        this.bookName = bookName;
        this.press = press;
        this.author = author;
        this.address = address;
        this.pressDate = pressDate;
        this.price = price;
        this.com = com;
        this.booksCount = booksCount;
        this.borrowedCount = borrowedCount;
    }
    

   
    // Property accessors

    public String getBookName() {
        return this.bookName;
    }
    
    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getPress() {
        return this.press;
    }
    
    public void setPress(String press) {
        this.press = press;
    }

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

    public String getAddress() {
        return this.address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }

    public Date getPressDate() {
        return this.pressDate;
    }
    
    public void setPressDate(Date pressDate) {
        this.pressDate = pressDate;
    }

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

    public String getCom() {
        return this.com;
    }
    
    public void setCom(String com) {
        this.com = com;
    }

    public Integer getBooksCount() {
        return this.booksCount;
    }
    
    public void setBooksCount(Integer booksCount) {
        this.booksCount = booksCount;
    }

    public Integer getBorrowedCount() {
        return this.borrowedCount;
    }
    
    public void setBorrowedCount(Integer borrowedCount) {
        this.borrowedCount = borrowedCount;
    }
   








}

⌨️ 快捷键说明

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