📄 abstractbook.java
字号:
package book.jsj0707.entity;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* AbstractBook entity provides the base persistence definition of the Book
* entity.
*
* @author MyEclipse Persistence Tools
*/
public abstract class AbstractBook implements java.io.Serializable {
// Fields
private Long bookid;
private Press press;
private Category category;
private String bookname;
private String author;
private String img;
private String introduce;
private Date publishdate;
private Long price;
private Long onhand;
private Set shoppingcars = new HashSet(0);
private Set orderses = new HashSet(0);
// Constructors
/** default constructor */
public AbstractBook() {
}
/** minimal constructor */
public AbstractBook(Press press, Category category, String bookname,
String introduce, Long price, Long onhand) {
this.press = press;
this.category = category;
this.bookname = bookname;
this.introduce = introduce;
this.price = price;
this.onhand = onhand;
}
/** full constructor */
public AbstractBook(Press press, Category category, String bookname,
String author, String img, String introduce, Date publishdate,
Long price, Long onhand, Set shoppingcars, Set orderses) {
this.press = press;
this.category = category;
this.bookname = bookname;
this.author = author;
this.img = img;
this.introduce = introduce;
this.publishdate = publishdate;
this.price = price;
this.onhand = onhand;
this.shoppingcars = shoppingcars;
this.orderses = orderses;
}
// Property accessors
public Long getBookid() {
return this.bookid;
}
public void setBookid(Long bookid) {
this.bookid = bookid;
}
public Press getPress() {
return this.press;
}
public void setPress(Press press) {
this.press = press;
}
public Category getCategory() {
return this.category;
}
public void setCategory(Category category) {
this.category = category;
}
public String getBookname() {
return this.bookname;
}
public void setBookname(String bookname) {
this.bookname = bookname;
}
public String getAuthor() {
return this.author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getImg() {
return this.img;
}
public void setImg(String img) {
this.img = img;
}
public String getIntroduce() {
return this.introduce;
}
public void setIntroduce(String introduce) {
this.introduce = introduce;
}
public Date getPublishdate() {
return this.publishdate;
}
public void setPublishdate(Date publishdate) {
this.publishdate = publishdate;
}
public Long getPrice() {
return this.price;
}
public void setPrice(Long price) {
this.price = price;
}
public Long getOnhand() {
return this.onhand;
}
public void setOnhand(Long onhand) {
this.onhand = onhand;
}
public Set getShoppingcars() {
return this.shoppingcars;
}
public void setShoppingcars(Set shoppingcars) {
this.shoppingcars = shoppingcars;
}
public Set getOrderses() {
return this.orderses;
}
public void setOrderses(Set orderses) {
this.orderses = orderses;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -