code075.java
package pack02;
//Book 图书类
public class code075
{
private int id; //图书编号
private String name;//图书名称
private double price;//价格
private int bookCount;//数量
private String author;//作者
public int getId()
{
return this.id;
}
public String getName()
{
return this.name;
}
public double getPrice()
{
return this.price;
}
public int getBookCount()
{
return this.bookCount;
}
public String getAuthor()
{
return this.author;
}
public void setId(int id)
{
this.id = id;
}
public void setName(String name)
{
this.name = name;
}
public void setPrice(double price)
{
this.price = price;
}
public void setBookCount(int bookCount)
{
this.bookCount = bookCount;
}
public void setAuthor(String author)
{
this.author = author;
}
/*
create table tb_books (
id int auto_increment not null primary key comment '图书编号',
name varchar(45) not null comment '图书名称',
price double not null comment '价格',
bookCount int not null comment '数量',
author varchar(45) not null comment '作者'
)
*/
}