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