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  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  	private boolean active = true;
36  
37  	private List<Address> addresses = new ArrayList<Address>();
38  
39  	private List<Book> books = new ArrayList<Book>();
40  
41  	
42  	
43  	
44  	
45  	
46  	
47  	
48  	
49  	
50  
51  	public List<Book> getBooks() {
52  		return books;
53  	}
54  
55  	public void setBooks(List<Book> books) {
56  		this.books = books;
57  	}
58  
59  	public List<Address> getAddresses() {
60  		return addresses;
61  	}
62  
63  	public void setAddresses(List<Address> addresses) {
64  		this.addresses = addresses;
65  	}
66  
67  	public Long getAuthorId() {
68  		return authorId;
69  	}
70  
71  	public void setAuthorId(Long authorId) {
72  		this.authorId = authorId;
73  	}
74  
75  	public String getAuthorName() {
76  		return authorName;
77  	}
78  
79  	public void setAuthorName(String authorName) {
80  		this.authorName = authorName;
81  	}
82  
83  	public String getEmail() {
84  		return email;
85  	}
86  
87  	public void setEmail(String email) {
88  		this.email = email;
89  	}
90  
91  	public String getPhoneNbr() {
92  		return phoneNbr;
93  	}
94  
95  	public void setPhoneNbr(String phoneNbr) {
96  		this.phoneNbr = phoneNbr;
97  	}
98  
99  	public boolean isActive() {
100 		return active;
101 	}
102 
103 	public void setActive(boolean active) {
104 		this.active = active;
105 	}
106 
107 	 
108 
109 }