1 package edu.sampleu.bookstore.bo;
2
3 import java.util.ArrayList;
4 import java.util.List;
5
6 import org.kuali.rice.kns.bo.Inactivateable;
7 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
8
9
10
11
12
13 public class Author extends PersistableBusinessObjectBase implements Inactivateable{
14
15 private static final long serialVersionUID = -4883752918652513985L;
16 private Long authorId;
17 private String authorName;
18 private String email;
19 private String phoneNbr;
20 private boolean active = true;
21
22 private List<Address> addresses = new ArrayList<Address>();
23
24 private List<Book> books = new ArrayList<Book>();
25
26
27
28
29
30
31
32
33
34
35
36 public List<Book> getBooks() {
37 return books;
38 }
39
40 public void setBooks(List<Book> books) {
41 this.books = books;
42 }
43
44 public List<Address> getAddresses() {
45 return addresses;
46 }
47
48 public void setAddresses(List<Address> addresses) {
49 this.addresses = addresses;
50 }
51
52 public Long getAuthorId() {
53 return authorId;
54 }
55
56 public void setAuthorId(Long authorId) {
57 this.authorId = authorId;
58 }
59
60 public String getAuthorName() {
61 return authorName;
62 }
63
64 public void setAuthorName(String authorName) {
65 this.authorName = authorName;
66 }
67
68 public String getEmail() {
69 return email;
70 }
71
72 public void setEmail(String email) {
73 this.email = email;
74 }
75
76 public String getPhoneNbr() {
77 return phoneNbr;
78 }
79
80 public void setPhoneNbr(String phoneNbr) {
81 this.phoneNbr = phoneNbr;
82 }
83
84 public boolean isActive() {
85 return active;
86 }
87
88 public void setActive(boolean active) {
89 this.active = active;
90 }
91
92
93
94 }