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