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