17 Star 0 Fork 0

If*You/BookShop

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Book.java 2.16 KB
Copy Edit Raw Blame History
李岳润 authored 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 +
'}';
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/GaoYuanze/book-shop.git
git@gitee.com:GaoYuanze/book-shop.git
GaoYuanze
book-shop
BookShop
master

Search

0d507c66 1850385 C8b1a773 1850385