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