加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Book.java 2.16 KB
一键复制 编辑 原始数据 按行查看 历史
李岳润 提交于 2024-02-22 11:28 . 李岳润提交
package com.moju.pojo;
import java.io.Serializable;
public class Book implements Serializable {
private Integer bookId;
private Integer categoryId;
private String bookName;
private String author;
private String publisher;
private Integer price;
private Integer salePrice;
private Integer amount;
//类别 类
private Category category;
public Category getCategory() {
return category;
}
public void setCategory(Category category) {
this.category = category;
}
public Integer getBookId() {
return bookId;
}
public void setBookId(Integer bookId) {
this.bookId = bookId;
}
public Integer getCategoryId() {
return categoryId;
}
public void setCategoryId(Integer categoryId) {
this.categoryId = categoryId;
}
public String getBookName() {
return bookName;
}
public void setBookName(String bookName) {
this.bookName = bookName;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getPublisher() {
return publisher;
}
public void setPublisher(String publisher) {
this.publisher = publisher;
}
public Integer getPrice() {
return price;
}
public void setPrice(Integer price) {
this.price = price;
}
public Integer getSalePrice() {
return salePrice;
}
public void setSalePrice(Integer salePrice) {
this.salePrice = salePrice;
}
public Integer getAmount() {
return amount;
}
public void setAmount(Integer amount) {
this.amount = amount;
}
@Override
public String toString() {
return "Book{" +
"bookId=" + bookId +
", categoryId=" + categoryId +
", bookName='" + bookName + '\'' +
", author='" + author + '\'' +
", publisher='" + publisher + '\'' +
", price=" + price +
", salePrice=" + salePrice +
", amount=" + amount +
'}';
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化