1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package edu.sampleu.bookstore.bo; |
20 | |
|
21 | |
import org.kuali.rice.core.api.mo.common.active.MutableInactivatable; |
22 | |
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; |
23 | |
|
24 | |
import java.util.ArrayList; |
25 | |
import java.util.List; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | 0 | public class BookType extends PersistableBusinessObjectBase implements MutableInactivatable { |
32 | |
|
33 | |
|
34 | |
private static final long serialVersionUID = 8499633675478827977L; |
35 | |
private String typeCode; |
36 | |
private String name; |
37 | |
private String description; |
38 | 0 | private boolean active = true; |
39 | |
|
40 | |
|
41 | 0 | private List<Book> books = new ArrayList<Book>(); |
42 | |
|
43 | |
|
44 | |
public List<Book> getBooks() { |
45 | 0 | return books; |
46 | |
} |
47 | |
|
48 | |
public void setBooks(List<Book> books) { |
49 | 0 | this.books = books; |
50 | 0 | } |
51 | |
|
52 | |
public String getTypeCode() { |
53 | 0 | return typeCode; |
54 | |
} |
55 | |
|
56 | |
public void setTypeCode(String typeCode) { |
57 | 0 | this.typeCode = typeCode; |
58 | 0 | } |
59 | |
|
60 | |
public String getName() { |
61 | 0 | return name; |
62 | |
} |
63 | |
|
64 | |
public void setName(String name) { |
65 | 0 | this.name = name; |
66 | 0 | } |
67 | |
|
68 | |
public String getDescription() { |
69 | 0 | return description; |
70 | |
} |
71 | |
|
72 | |
public void setDescription(String description) { |
73 | 0 | this.description = description; |
74 | 0 | } |
75 | |
|
76 | |
public boolean isActive() { |
77 | 0 | return active; |
78 | |
} |
79 | |
|
80 | |
public void setActive(boolean active) { |
81 | 0 | this.active = active; |
82 | 0 | } |
83 | |
|
84 | |
|
85 | |
} |