1 | |
package edu.sampleu.bookstore.bo; |
2 | |
|
3 | |
import java.util.LinkedHashMap; |
4 | |
|
5 | |
import org.kuali.rice.core.util.type.KualiPercent; |
6 | |
import org.kuali.rice.core.util.type.KualiDecimal; |
7 | |
import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; |
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | 0 | public class BookOrder extends PersistableBusinessObjectBase { |
14 | |
|
15 | |
private static final long serialVersionUID = -3602318476248146613L; |
16 | |
|
17 | |
private Long id; |
18 | |
private String documentId; |
19 | |
private Long bookId; |
20 | |
private Integer quantity; |
21 | |
private KualiPercent discount; |
22 | |
private KualiDecimal unitPrice; |
23 | |
private KualiDecimal totalPrice; |
24 | |
|
25 | |
private Book book; |
26 | |
|
27 | |
public Long getId() { |
28 | 0 | return id; |
29 | |
} |
30 | |
|
31 | |
public void setId(Long id) { |
32 | 0 | this.id = id; |
33 | 0 | } |
34 | |
|
35 | |
public Integer getQuantity() { |
36 | 0 | return quantity; |
37 | |
} |
38 | |
|
39 | |
public void setQuantity(Integer quantity) { |
40 | 0 | this.quantity = quantity; |
41 | 0 | } |
42 | |
|
43 | |
public String getDocumentId() { |
44 | 0 | return documentId; |
45 | |
} |
46 | |
|
47 | |
public void setDocumentId(String documentId) { |
48 | 0 | this.documentId = documentId; |
49 | 0 | } |
50 | |
|
51 | |
public Long getBookId() { |
52 | 0 | return bookId; |
53 | |
} |
54 | |
|
55 | |
public void setBookId(Long bookId) { |
56 | 0 | this.bookId = bookId; |
57 | 0 | } |
58 | |
|
59 | |
public Book getBook() { |
60 | 0 | return book; |
61 | |
} |
62 | |
|
63 | |
public void setBook(Book book) { |
64 | 0 | this.book = book; |
65 | 0 | } |
66 | |
|
67 | |
public KualiPercent getDiscount() { |
68 | 0 | return discount; |
69 | |
} |
70 | |
|
71 | |
public void setDiscount(KualiPercent discount) { |
72 | 0 | this.discount = discount; |
73 | 0 | } |
74 | |
|
75 | |
public KualiDecimal getUnitPrice() { |
76 | 0 | return unitPrice; |
77 | |
} |
78 | |
|
79 | |
public void setUnitPrice(KualiDecimal unitPrice) { |
80 | 0 | this.unitPrice = unitPrice; |
81 | 0 | } |
82 | |
|
83 | |
public KualiDecimal getTotalPrice() { |
84 | 0 | return totalPrice; |
85 | |
} |
86 | |
|
87 | |
public void setTotalPrice(KualiDecimal totalPrice) { |
88 | 0 | this.totalPrice = totalPrice; |
89 | 0 | } |
90 | |
|
91 | |
|
92 | |
|
93 | |
} |