View Javadoc

1   /**
2    * Copyright 2005-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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   * Author Business Object class file for Author maintenance object.
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  	// private Account account;
42  	//	
43  	// public Account getAccount() {
44  	// return account;
45  	// }
46  	//
47  	// public void setAccount(Account account) {
48  	// this.account = account;
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 }