java做图书管理系统(2)model类

  1 package com.java1234.model;
  2 
  3 
  4 /**
  5  * 图书实体类
  6  * @author H_Pioneer
  7  *
  8  */
  9 public class Book {
 10 
 11     private int id; //编号
 12     private String bookName;  //图书名称
 13     private String author;  //作者
 14     private String sex;  //性别
 15     private float price;  //价格
 16     private Integer bookTypeId;  //图书类别
 17     private String bookTypeName;  //图书类别名称
 18     private String bookDesc;  //备注
 19 
 20 
 21 
 22     public Book(int id2, String bookName, String author, String sex, float price, Integer bookTypeId, String bookDesc) {
 23         super();
 24         this.id = id2;
 25         this.bookName = bookName;
 26         this.author = author;
 27         this.sex = sex;
 28         this.price = price;
 29         this.bookTypeId = bookTypeId;
 30         this.bookDesc = bookDesc;
 31     }
 32 
 33     public Book(String bookName, String author, Integer bookTypeId) {
 34         super();
 35         this.bookName = bookName;
 36         this.author = author;
 37         this.bookTypeId = bookTypeId;
 38     }
 39 
 40     public Book(String bookName, String author, String sex, float price, Integer bookTypeId, String bookDesc) {
 41         super();
 42         this.bookName = bookName;
 43         this.author = author;
 44         this.sex = sex;
 45         this.price = price;
 46         this.bookTypeId = bookTypeId;
 47         this.bookDesc = bookDesc;
 48     }
 49 
 50     public Book() {
 51         super();
 52         // TODO Auto-generated constructor stub
 53     }
 54     public int getId() {
 55         return id;
 56     }
 57     public void setId(int id) {
 58         this.id = id;
 59     }
 60     public String getBookName() {
 61         return bookName;
 62     }
 63     public void setBookName(String bookName) {
 64         this.bookName = bookName;
 65     }
 66     public String getAuthor() {
 67         return author;
 68     }
 69     public void setAuthor(String author) {
 70         this.author = author;
 71     }
 72     public String getSex() {
 73         return sex;
 74     }
 75     public void setSex(String sex) {
 76         this.sex = sex;
 77     }
 78     public float getPrice() {
 79         return price;
 80     }
 81     public void setPrice(float price) {
 82         this.price = price;
 83     }
 84     public Integer getBookTypeId() {
 85         return bookTypeId;
 86     }
 87     public void setBookTypeId(Integer bookTypeId) {
 88         this.bookTypeId = bookTypeId;
 89     }
 90     public String getBookTypeName() {
 91         return bookTypeName;
 92     }
 93     public void setBookTypeName(String bookTypeName) {
 94         this.bookTypeName = bookTypeName;
 95     }
 96     public String getBookDesc() {
 97         return bookDesc;
 98     }
 99     public void setBookDesc(String bookDesc) {
100         this.bookDesc = bookDesc;
101     }
102 
103 
104 }

 

posted on 2017-11-25 18:20  jun俊  阅读(626)  评论(1)    收藏  举报

导航