1
2
3
4 package edu.sampleu.bookstore.bo;
5
6 import org.kuali.rice.core.api.util.type.KualiDecimal;
7 import org.kuali.rice.core.api.util.type.KualiInteger;
8 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
9
10 import java.util.ArrayList;
11 import java.util.Date;
12 import java.util.List;
13
14
15
16
17
18 public class Book extends PersistableBusinessObjectBase {
19
20 private static final long serialVersionUID = -2406918292069639330L;
21
22 private Long id;
23 private String title;
24 private String typeCode;
25 private String isbn;
26 private String publisher;
27 private Date publicationDate;
28 private KualiDecimal price;
29 private KualiInteger rating;
30
31 private BookType bookType;
32
33 private List<Author> authors = new ArrayList<Author>();
34
35 public Long getId() {
36 return id;
37 }
38
39 public void setId(Long id) {
40 this.id = id;
41 }
42
43 public String getTitle() {
44 return title;
45 }
46
47 public void setTitle(String title) {
48 this.title = title;
49 }
50
51 public String getTypeCode() {
52 return typeCode;
53 }
54
55 public void setTypeCode(String typeCode) {
56 this.typeCode = typeCode;
57 }
58
59 public BookType getBookType() {
60 return bookType;
61 }
62
63 public void setBookType(BookType bookType) {
64 this.bookType = bookType;
65 }
66
67 public String getIsbn() {
68 return isbn;
69 }
70
71 public void setIsbn(String isbn) {
72 this.isbn = isbn;
73 }
74
75 public String getPublisher() {
76 return publisher;
77 }
78
79 public void setPublisher(String publisher) {
80 this.publisher = publisher;
81 }
82
83 public Date getPublicationDate() {
84 return publicationDate;
85 }
86
87 public void setPublicationDate(Date publicationDate) {
88 this.publicationDate = publicationDate;
89 }
90
91 public KualiInteger getRating() {
92 return rating;
93 }
94
95 public void setRating(KualiInteger rating) {
96 this.rating = rating;
97 }
98
99 public KualiDecimal getPrice() {
100 return price;
101 }
102
103 public void setPrice(KualiDecimal price) {
104 this.price = price;
105 }
106
107 public List<Author> getAuthors() {
108 return authors;
109 }
110
111 public void setAuthors(List<Author> authors) {
112 this.authors = authors;
113 }
114
115 }