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