shoppingcartitem.java
来自「在线图书管理系统,所有框架struts2,hibernate,spring 希望」· Java 代码 · 共 48 行
JAVA
48 行
/**
*
*/
package com.ascent.util;
import java.io.Serializable;
import com.ascent.bean.Book;
public class ShoppingCartItem implements Serializable {
private Book book = null;
private int quantity = 1;
public void setBook(Book book){
this.book = book;
}
public Book getBook(){
return this.getBook();
}
public int getQuantity(){
return this.quantity;
}
public void setQuantity(int quantity){
this.quantity = quantity;
}
public int getBookId()
{
return this.book.getBookId().intValue();
}
public double getBookPrice(){
return this.book.getBookPrice().doubleValue();
}
public String getBookName(){
return this.book.getBookName();
}
public String getBookAuthor(){
return this.book.getBookAuthor();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?