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 | 0 | 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 | 0 | private List<Author> authors = new ArrayList<Author>(); |
34 | |
|
35 | |
public Long getId() { |
36 | 0 | return id; |
37 | |
} |
38 | |
|
39 | |
public void setId(Long id) { |
40 | 0 | this.id = id; |
41 | 0 | } |
42 | |
|
43 | |
public String getTitle() { |
44 | 0 | return title; |
45 | |
} |
46 | |
|
47 | |
public void setTitle(String title) { |
48 | 0 | this.title = title; |
49 | 0 | } |
50 | |
|
51 | |
public String getTypeCode() { |
52 | 0 | return typeCode; |
53 | |
} |
54 | |
|
55 | |
public void setTypeCode(String typeCode) { |
56 | 0 | this.typeCode = typeCode; |
57 | 0 | } |
58 | |
|
59 | |
public BookType getBookType() { |
60 | 0 | return bookType; |
61 | |
} |
62 | |
|
63 | |
public void setBookType(BookType bookType) { |
64 | 0 | this.bookType = bookType; |
65 | 0 | } |
66 | |
|
67 | |
public String getIsbn() { |
68 | 0 | return isbn; |
69 | |
} |
70 | |
|
71 | |
public void setIsbn(String isbn) { |
72 | 0 | this.isbn = isbn; |
73 | 0 | } |
74 | |
|
75 | |
public String getPublisher() { |
76 | 0 | return publisher; |
77 | |
} |
78 | |
|
79 | |
public void setPublisher(String publisher) { |
80 | 0 | this.publisher = publisher; |
81 | 0 | } |
82 | |
|
83 | |
public Date getPublicationDate() { |
84 | 0 | return publicationDate; |
85 | |
} |
86 | |
|
87 | |
public void setPublicationDate(Date publicationDate) { |
88 | 0 | this.publicationDate = publicationDate; |
89 | 0 | } |
90 | |
|
91 | |
public KualiInteger getRating() { |
92 | 0 | return rating; |
93 | |
} |
94 | |
|
95 | |
public void setRating(KualiInteger rating) { |
96 | 0 | this.rating = rating; |
97 | 0 | } |
98 | |
|
99 | |
public KualiDecimal getPrice() { |
100 | 0 | return price; |
101 | |
} |
102 | |
|
103 | |
public void setPrice(KualiDecimal price) { |
104 | 0 | this.price = price; |
105 | 0 | } |
106 | |
|
107 | |
public List<Author> getAuthors() { |
108 | 0 | return authors; |
109 | |
} |
110 | |
|
111 | |
public void setAuthors(List<Author> authors) { |
112 | 0 | this.authors = authors; |
113 | 0 | } |
114 | |
|
115 | |
} |