<pre name="code" class="java">package domain;
public class OrderIterm {
private String iid;
private int count;/*数量*/
private double subtotal;/*小计*/
private Order order; /*所属订单 (关联)*/
private Book book;/*订单项所指的商品 (关联)*/
public String getIid() {
return iid;
}
public void setIid(String iid) {
this.iid = iid;
}
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public double getSubtotal() {
return subtotal;
}
public void setSubtotal(double subtotal) {
this.subtotal = subtotal;
}
public Order getOrder() {
return order;
}
public void setOrder(Order order) {
this.order = order;
}
public Book getBook() {
return book;
}
public void setBook(Book book) {
this.book = book;
}
}
public void addOrderItermList(List <OrderIterm> orderItermList){/** * 批处理:QueryRunner