001 /** 002 * 003 */ 004 package edu.sampleu.bookstore.bo; 005 006 import org.kuali.rice.core.api.util.type.KualiDecimal; 007 import org.kuali.rice.core.api.util.type.KualiInteger; 008 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 009 010 import java.util.ArrayList; 011 import java.util.Date; 012 import java.util.List; 013 014 015 /** 016 * A business object class for the Book maintenance object. 017 */ 018 public class Book extends PersistableBusinessObjectBase { 019 020 private static final long serialVersionUID = -2406918292069639330L; 021 022 private Long id; 023 private String title; 024 private String typeCode; 025 private String isbn; 026 private String publisher; 027 private Date publicationDate; 028 private KualiDecimal price; 029 private KualiInteger rating; 030 031 private BookType bookType; 032 033 private List<Author> authors = new ArrayList<Author>(); 034 035 public Long getId() { 036 return id; 037 } 038 039 public void setId(Long id) { 040 this.id = id; 041 } 042 043 public String getTitle() { 044 return title; 045 } 046 047 public void setTitle(String title) { 048 this.title = title; 049 } 050 051 public String getTypeCode() { 052 return typeCode; 053 } 054 055 public void setTypeCode(String typeCode) { 056 this.typeCode = typeCode; 057 } 058 059 public BookType getBookType() { 060 return bookType; 061 } 062 063 public void setBookType(BookType bookType) { 064 this.bookType = bookType; 065 } 066 067 public String getIsbn() { 068 return isbn; 069 } 070 071 public void setIsbn(String isbn) { 072 this.isbn = isbn; 073 } 074 075 public String getPublisher() { 076 return publisher; 077 } 078 079 public void setPublisher(String publisher) { 080 this.publisher = publisher; 081 } 082 083 public Date getPublicationDate() { 084 return publicationDate; 085 } 086 087 public void setPublicationDate(Date publicationDate) { 088 this.publicationDate = publicationDate; 089 } 090 091 public KualiInteger getRating() { 092 return rating; 093 } 094 095 public void setRating(KualiInteger rating) { 096 this.rating = rating; 097 } 098 099 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 }