View Javadoc

1   package edu.sampleu.bookstore.bo;
2   
3   import org.kuali.rice.krad.bo.Inactivatable;
4   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
5   
6   import java.util.ArrayList;
7   import java.util.List;
8   
9   /**
10   * Author Business Object class file for Author maintenance object.
11   */
12  
13  public class Author extends PersistableBusinessObjectBase implements Inactivatable {
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  	// private Account account;
27  	//	
28  	// public Account getAccount() {
29  	// return account;
30  	// }
31  	//
32  	// public void setAccount(Account account) {
33  	// this.account = account;
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  }