orderitem.java
来自「用STRUTS ,HIBERNATE, SPRING 三种框架整合做的实战项目」· Java 代码 · 共 119 行
JAVA
119 行
package com.ghy.data.order;
import java.io.Serializable;
public class OrderItem implements Serializable{
private String orderid = null;
private String bookid = null;
private int amount = 1;
private int price = 0;
private String bookname = null;
private int subtotal = 0 ;
private String checked = null ;
public OrderItem() {
super();
// TODO Auto-generated constructor stub
}
public String getChecked() {
return checked;
}
public void setChecked(String checked) {
this.checked = checked;
}
/**
* @return the orderid
*/
public String getOrderid() {
return orderid;
}
/**
* @param orderid the orderid to set
*/
public void setOrderid(String orderid) {
this.orderid = orderid;
}
/**
* @return the bookid
*/
public String getBookid() {
return bookid;
}
/**
* @param bookid the bookid to set
*/
public void setBookid(String bookid) {
this.bookid = bookid;
}
/**
* @return the amount
*/
public int getAmount() {
return amount;
}
/**
* @param amount the amount to set
*/
public void setAmount(int amount) {
this.amount = amount;
}
/**
* @return the price
*/
public int getPrice() {
return price;
}
/**
* @param price the price to set
*/
public void setPrice(int price) {
this.price = price;
}
/**
* @return the bookname
*/
public String getBookname() {
return bookname;
}
/**
* @param bookname the bookname to set
*/
public void setBookname(String bookname) {
this.bookname = bookname;
}
/**
* @return the subtotal
*/
public int getSubtotal() {
return subtotal;
}
/**
* @param subtotal the subtotal to set
*/
public void setSubtotal() {
this.subtotal = this.amount * this.price;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?