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