001    package edu.sampleu.bookstore.bo;
002    
003    import org.kuali.rice.krad.bo.Inactivatable;
004    import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
005    
006    import java.util.ArrayList;
007    import java.util.List;
008    
009    /**
010     * Author Business Object class file for Author maintenance object.
011     */
012    
013    public class Author extends PersistableBusinessObjectBase implements Inactivatable {
014    
015            private static final long serialVersionUID = -4883752918652513985L;
016            private Long authorId;
017            private String authorName;
018            private String email;
019            private String phoneNbr;
020            private boolean active = true;
021    
022            private List<Address> addresses = new ArrayList<Address>();
023    
024            private List<Book> books = new ArrayList<Book>();
025    
026            // private Account account;
027            //      
028            // public Account getAccount() {
029            // return account;
030            // }
031            //
032            // public void setAccount(Account account) {
033            // this.account = account;
034            // }
035    
036            public List<Book> getBooks() {
037                    return books;
038            }
039    
040            public void setBooks(List<Book> books) {
041                    this.books = books;
042            }
043    
044            public List<Address> getAddresses() {
045                    return addresses;
046            }
047    
048            public void setAddresses(List<Address> addresses) {
049                    this.addresses = addresses;
050            }
051    
052            public Long getAuthorId() {
053                    return authorId;
054            }
055    
056            public void setAuthorId(Long authorId) {
057                    this.authorId = authorId;
058            }
059    
060            public String getAuthorName() {
061                    return authorName;
062            }
063    
064            public void setAuthorName(String authorName) {
065                    this.authorName = authorName;
066            }
067    
068            public String getEmail() {
069                    return email;
070            }
071    
072            public void setEmail(String email) {
073                    this.email = email;
074            }
075    
076            public String getPhoneNbr() {
077                    return phoneNbr;
078            }
079    
080            public void setPhoneNbr(String phoneNbr) {
081                    this.phoneNbr = phoneNbr;
082            }
083    
084            public boolean isActive() {
085                    return active;
086            }
087    
088            public void setActive(boolean active) {
089                    this.active = active;
090            }
091    
092             
093    
094    }